From b00578f61418cf63318e1a6c85fdde917ee9ef48 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 21 May 2006 16:28:49 +0000 Subject: * IMAP4 patch by Sunil Shetye: - do not depend on server updating RECENT counts at all - also enter IDLE loop when messages are present on the server. svn path=/branches/BRANCH_6-3/; revision=4847 --- driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 02f88f52..8ffd8e98 100644 --- a/driver.c +++ b/driver.c @@ -1457,11 +1457,11 @@ is restored.")); goto no_error; } while /* - * Only re-poll if we either had some actual forwards and - * either allowed deletions and had no errors. + * Only repoll if we either had some actual forwards + * or are idling for new mails and had no errors. * Otherwise it is far too easy to get into infinite loops. */ - (dispatches && ctl->server.base_protocol->retry && !ctl->keep && !ctl->errcount); + (ctl->server.base_protocol->retry && (dispatches || ctl->idle) && !ctl->errcount); } /* XXX: From this point onwards, preserve err unless a new error has occurred */ -- cgit v1.2.3