diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-30 18:56:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-30 18:56:52 +0000 |
commit | 13b4a157ef192674da662553584253ae7c0f3b52 (patch) | |
tree | 778943f1356f7982d4af496aadd3607021eedb29 /imap.c | |
parent | 9ae98cb27ed3c6856a5169f96ce11f278b057e2d (diff) | |
download | fetchmail-13b4a157ef192674da662553584253ae7c0f3b52.tar.gz fetchmail-13b4a157ef192674da662553584253ae7c0f3b52.tar.bz2 fetchmail-13b4a157ef192674da662553584253ae7c0f3b52.zip |
Eliminate the "No mail" message on second and later passes.
svn path=/trunk/; revision=1438
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -33,7 +33,7 @@ extern char *strstr(); /* needed on sysV68 R3V7.1. */ #define IMAP4 0 /* IMAP4 rev 0, RFC1730 */ #define IMAP4rev1 1 /* IMAP4 rev 1, RFC2060 */ -static int count,seen,recent,unseen, deletions,expunged, imap_version, pass; +static int count, seen, recent, unseen, deletions,expunged, imap_version; int imap_ok(int sock, char *argbuf) /* parse command response */ @@ -419,7 +419,7 @@ static int imap_getrange(int sock, /* find out how many messages are waiting */ recent = unseen = -1; - if (++pass > 1) + if (pass > 1) { ok = gen_transact(sock, "NOOP"); if (ok != 0) @@ -684,7 +684,6 @@ const static struct method imap = int doIMAP(struct query *ctl) /* retrieve messages using IMAP Version 2bis or Version 4 */ { - pass = 0; return(do_protocol(ctl, &imap)); } |