aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-05-21 16:28:49 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-05-21 16:28:49 +0000
commitb00578f61418cf63318e1a6c85fdde917ee9ef48 (patch)
tree0f03f08aafe3e666d16fbaf5b8110cd7b55621b2 /driver.c
parent0e4a872da76e99c8b317b8610c204548882bcaab (diff)
downloadfetchmail-b00578f61418cf63318e1a6c85fdde917ee9ef48.tar.gz
fetchmail-b00578f61418cf63318e1a6c85fdde917ee9ef48.tar.bz2
fetchmail-b00578f61418cf63318e1a6c85fdde917ee9ef48.zip
* 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
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c6
1 files changed, 3 insertions, 3 deletions
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 */