aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-09-21 08:43:37 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-09-21 08:43:37 +0000
commit2bc457aff6736542213099798051cddb99980f83 (patch)
tree1d51be0ba6079abd985113d2f05ab8f2d31e54b3 /driver.c
parenta8d1ade70d438ec53966338ce2355c38c7991ab1 (diff)
downloadfetchmail-2bc457aff6736542213099798051cddb99980f83.tar.gz
fetchmail-2bc457aff6736542213099798051cddb99980f83.tar.bz2
fetchmail-2bc457aff6736542213099798051cddb99980f83.zip
Expunge between IMAP folders when polling multiple folders. Sunil Shetye.
Fix IMAP expunged message counting. Sunil Shetye. svn path=/trunk/; revision=4301
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 35ec61a6..88add41c 100644
--- a/driver.c
+++ b/driver.c
@@ -1424,6 +1424,14 @@ is restored."));
send_size_warnings(ctl);
}
}
+
+ /* end-of-mailbox processing before we repoll or switch to another one */
+ if (ctl->server.base_protocol->end_mailbox_poll)
+ {
+ err = (ctl->server.base_protocol->end_mailbox_poll)(mailserver_socket, ctl);
+ if (err)
+ goto cleanUp;
+ }
} while
/*
* Only re-poll if we either had some actual forwards and