From a9c64a8cf65a5c809c84e1808d98e5d81e8ba89d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 26 Jun 1999 03:42:23 +0000 Subject: Also expunge on re-poll when expunge period is zero. svn path=/trunk/; revision=2511 --- imap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'imap.c') 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")) -- cgit v1.2.3