aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
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
{