From 2bc457aff6736542213099798051cddb99980f83 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 21 Sep 2005 08:43:37 +0000 Subject: Expunge between IMAP folders when polling multiple folders. Sunil Shetye. Fix IMAP expunged message counting. Sunil Shetye. svn path=/trunk/; revision=4301 --- driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'driver.c') 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 -- cgit v1.2.3