aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-04-01 07:50:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-04-01 07:50:04 +0000
commit71bc7ce6858ee50574dc574a948ea24b5d2d0bfc (patch)
tree99f8d8677fdb18690839fa5d8023aae4016c90b6 /imap.c
parent26a916d0536f4048e3379bc7fe663ceb0944ce34 (diff)
downloadfetchmail-71bc7ce6858ee50574dc574a948ea24b5d2d0bfc.tar.gz
fetchmail-71bc7ce6858ee50574dc574a948ea24b5d2d0bfc.tar.bz2
fetchmail-71bc7ce6858ee50574dc574a948ea24b5d2d0bfc.zip
Debian 5.9.10 fixes.
svn path=/trunk/; revision=3603
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;