From 5cf8f79757af93a10dbb7affb2fbbeddc8c6161d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 5 Nov 1997 14:28:22 +0000 Subject: Minor bug fixes im IMAP handling. svn path=/trunk/; revision=1534 --- imap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'imap.c') 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 { -- cgit v1.2.3