diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-05-21 16:28:49 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-05-21 16:28:49 +0000 |
commit | b00578f61418cf63318e1a6c85fdde917ee9ef48 (patch) | |
tree | 0f03f08aafe3e666d16fbaf5b8110cd7b55621b2 /driver.c | |
parent | 0e4a872da76e99c8b317b8610c204548882bcaab (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |