diff options
author | reinelt <> | 2001-09-12 05:58:16 +0000 |
---|---|---|
committer | reinelt <> | 2001-09-12 05:58:16 +0000 |
commit | 790c554d43e996db3efe96a32eb1f59e876c3f91 (patch) | |
tree | 9821b52a6642ec14196613b48ba2eb0b2b379b0a /mail2.c | |
parent | fdfa63e281bfeb119f53db84810b705b9e64a1c2 (diff) | |
download | lcd4linux-790c554d43e996db3efe96a32eb1f59e876c3f91.tar.gz |
[lcd4linux @ 2001-09-12 05:58:16 by reinelt]
fixed bug in mail2.c
Diffstat (limited to 'mail2.c')
-rw-r--r-- | mail2.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $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 * @@ -20,6 +20,9 @@ * * * $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 * @@ -189,6 +192,9 @@ static int check_nntp(char *user, char *pass, char *machine, 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); @@ -293,6 +299,9 @@ static int check_imap4(char *user, char *pass, char *machine, char buf[BUFLEN]; char *p; + *total=0; + *unseen = 0; + if (fd < 0) { error("Couldn't connect to %s:%d (%s)", machine, port, strerror(errno)); @@ -337,6 +346,9 @@ static int check_pop3(char *user, char *pass, char *machine, int n; char buf[BUFLEN]; + *total=0; + *unseen=0; + if (fd < 0) { error("Couldn't connect to %s:%d (%s)", machine, port, strerror(errno)); |