aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-06-26 03:42:23 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-06-26 03:42:23 +0000
commita9c64a8cf65a5c809c84e1808d98e5d81e8ba89d (patch)
tree53bcd1749f4702464e26a0a5f5a8ec255f8e242b
parent03ab15891b1713d422fce4d7aae581b369822b7e (diff)
downloadfetchmail-a9c64a8cf65a5c809c84e1808d98e5d81e8ba89d.tar.gz
fetchmail-a9c64a8cf65a5c809c84e1808d98e5d81e8ba89d.tar.bz2
fetchmail-a9c64a8cf65a5c809c84e1808d98e5d81e8ba89d.zip
Also expunge on re-poll when expunge period is zero.
svn path=/trunk/; revision=2511
-rw-r--r--imap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index 39aa3695..564f6354 100644
--- a/imap.c
+++ b/imap.c
@@ -904,10 +904,12 @@ static int imap_getrange(int sock,
{
/*
* We have to have an expunge here, otherwise the re-poll will
- * infinite-loop picking up un-expunged messages.
+ * infinite-loop picking up un-expunged messages -- unless the
+ * expunge period is one and we've been nuking each message
+ * just after deletion.
*/
ok = 0;
- if (deletions && expunge_period > 1)
+ if (deletions && expunge_period != 1)
internal_expunge(sock);
count = -1;
if (ok || gen_transact(sock, "NOOP"))