aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c4
1 files changed, 4 insertions, 0 deletions
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;