-/* $Id: mail.c,v 1.10 2001/09/12 05:37:22 reinelt Exp $
+/* $Id: mail.c,v 1.11 2001/09/12 05:58:16 reinelt Exp $
*
* email specific functions
*
*
*
* $Log: mail.c,v $
+ * Revision 1.11 2001/09/12 05:58:16 reinelt
+ * fixed bug in mail2.c
+ *
* Revision 1.10 2001/09/12 05:37:22 reinelt
*
* fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's
{
FILE *fstr;
char buffer[32];
- static int cfgmbx[MAILBOXES+1]={[0 ... MAILBOXES]=TRUE,}; // Mailbox #index configured?
- static time_t mbxlt[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // mtime of Mailbox #index
- static int mbxnum[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last calculated # of mails
- static time_t now[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last call to procedure at
- // for Mailbox #index
+ static int cfgmbx[MAILBOXES+1]={[0 ... MAILBOXES]=TRUE,}; // Mailbox #index configured?
+ static time_t mbxlt[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // mtime of Mailbox #index
+ static int mbxnum[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last calculated # of mails
+ static time_t now[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last call to procedure at
+ // for Mailbox #index
char *fnp1;
int v1=0;
int last_line_blank1; // Was the last line blank?
-/* $Id: mail2.c,v 1.4 2001/03/16 09:28:08 ltoetsch Exp $
+/* $Id: mail2.c,v 1.5 2001/09/12 05:58:16 reinelt Exp $
*
* mail: pop3, imap, news functions
*
*
*
* $Log: mail2.c,v $
+ * Revision 1.5 2001/09/12 05:58:16 reinelt
+ * fixed bug in mail2.c
+ *
* Revision 1.4 2001/03/16 09:28:08 ltoetsch
* bugfixes
*
int totg, unsg;
int first;
+ *total = 0;
+ *unseen = 0;
+
strcpy(buf, cfg_get("Newsrc") ?: ".newsrc");
if (*buf == 0 || ((fp = fopen(buf, "r")) == NULL)) {
error("Couldn't open .newsrc-file '%s'", buf);
char buf[BUFLEN];
char *p;
+ *total=0;
+ *unseen = 0;
+
if (fd < 0)
{
error("Couldn't connect to %s:%d (%s)", machine, port, strerror(errno));
int n;
char buf[BUFLEN];
+ *total=0;
+ *unseen=0;
+
if (fd < 0)
{
error("Couldn't connect to %s:%d (%s)", machine, port, strerror(errno));
-/* $Id: socket.c,v 1.3 2001/09/12 05:37:22 reinelt Exp $
+/* $Id: socket.c,v 1.4 2001/09/12 05:58:16 reinelt Exp $
*
* simple socket functions
*
*
*
* $Log: socket.c,v $
+ * Revision 1.4 2001/09/12 05:58:16 reinelt
+ * fixed bug in mail2.c
+ *
* Revision 1.3 2001/09/12 05:37:22 reinelt
*
* fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's
static char *quotemeta (char *string)
{
- char buffer[256];
+ static char buffer[256];
char *s, *p;
p=buffer;