Index: imap.c =================================================================== RCS file: /home/cvs/debian/fetchmail/imap.c,v retrieving revision 1.19 diff -u -r1.19 imap.c --- imap.c 9 Nov 2001 12:15:45 -0000 1.19 +++ imap.c 24 Dec 2001 23:46:02 -0000 @@ -29,8 +29,9 @@ #define IMAP4 0 /* IMAP4 rev 0, RFC1730 */ #define IMAP4rev1 1 /* IMAP4 rev 1, RFC2060 */ -static int count, unseen, deletions, imap_version, preauth; -static int expunged, expunge_period, saved_timeout; +static int count, unseen, deletions = 0; +static int expunged, expunge_period, saved_timeout = 0; +static int imap_version, preauth; static flag do_idle; static char capabilities[MSGBUFSIZE+1]; static unsigned int *unseen_messages; @@ -576,6 +577,7 @@ *newp = unseen; expunged = 0; + deletions = 0; return(PS_SUCCESS); }