diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-06-26 03:42:23 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-06-26 03:42:23 +0000 |
commit | a9c64a8cf65a5c809c84e1808d98e5d81e8ba89d (patch) | |
tree | 53bcd1749f4702464e26a0a5f5a8ec255f8e242b /imap.c | |
parent | 03ab15891b1713d422fce4d7aae581b369822b7e (diff) | |
download | fetchmail-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
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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")) |