From 71bc7ce6858ee50574dc574a948ea24b5d2d0bfc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 1 Apr 2002 07:50:04 +0000 Subject: Debian 5.9.10 fixes. svn path=/trunk/; revision=3603 --- imap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'imap.c') diff --git a/imap.c b/imap.c index fd850d78..96f485cf 100644 --- a/imap.c +++ b/imap.c @@ -517,6 +517,9 @@ static int imap_getrange(int sock, return(ok); } } + /* if recentcount is 0, return no mail */ + if (recentcount == 0) + count = 0; if (outlevel >= O_DEBUG) report(stdout, GT_("%d messages waiting after re-poll\n"), count); } @@ -617,6 +620,7 @@ static int imap_getrange(int sock, unseen = -1; *newp = unseen; + count = 0; expunged = 0; deletions = 0; -- cgit v1.2.3