aboutsummaryrefslogtreecommitdiffstats
path: root/mail2.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-09-12 05:58:16 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-09-12 05:58:16 +0000
commit3e02257318034a35959a9680159f1c99399fa0f7 (patch)
tree9821b52a6642ec14196613b48ba2eb0b2b379b0a /mail2.c
parent4340dc126ba0920dc93c0e74d48cfee769547399 (diff)
downloadlcd4linux-3e02257318034a35959a9680159f1c99399fa0f7.tar.gz
[lcd4linux @ 2001-09-12 05:58:16 by reinelt]
fixed bug in mail2.c git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@148 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--mail2.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/mail2.c b/mail2.c
index c26830f..4692a2c 100644
--- a/mail2.c
+++ b/mail2.c
@@ -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));