aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-11-05 14:28:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-11-05 14:28:22 +0000
commit5cf8f79757af93a10dbb7affb2fbbeddc8c6161d (patch)
treebc01c376b82a7ee682690b8fcee74a2920574fca /imap.c
parent19f79656acadda76cf667eda8b25ad5d2d6b0a2b (diff)
downloadfetchmail-5cf8f79757af93a10dbb7affb2fbbeddc8c6161d.tar.gz
fetchmail-5cf8f79757af93a10dbb7affb2fbbeddc8c6161d.tar.bz2
fetchmail-5cf8f79757af93a10dbb7affb2fbbeddc8c6161d.zip
Minor bug fixes im IMAP handling.
svn path=/trunk/; revision=1534
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/imap.c b/imap.c
index 4729186e..da0ed018 100644
--- a/imap.c
+++ b/imap.c
@@ -425,11 +425,17 @@ static int imap_getrange(int sock,
if (!ok)
expunge_uids(ctl);
#endif /* IMAP_UID */
+ count = -1;
if (ok || gen_transact(sock, "NOOP"))
{
error(0, 0, "re-poll failed");
return(ok);
}
+ else if (count == -1) /* no EXISTS response to NOOP */
+ {
+ count = recent = 0;
+ unseen = -1;
+ }
}
else
{