dovecot-2.2: lib-storage: Don't update mailbox list index status...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 25 03:21:20 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/2b964521f5ab
changeset: 18011:2b964521f5ab
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 25 06:18:45 2014 +0300
description:
lib-storage: Don't update mailbox list index status fields when deleting a mailbox.
diffstat:
src/lib-storage/list/mailbox-list-index-status.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 5e4a7fd9782c -r 2b964521f5ab src/lib-storage/list/mailbox-list-index-status.c
--- a/src/lib-storage/list/mailbox-list-index-status.c Sat Oct 25 06:18:06 2014 +0300
+++ b/src/lib-storage/list/mailbox-list-index-status.c Sat Oct 25 06:18:45 2014 +0300
@@ -397,6 +397,12 @@
if (ilist->syncing || ilist->updating_status)
return 0;
+ if (box->deleting) {
+ /* don't update status info while mailbox is being deleted.
+ especially not a good idea if we're rollbacking a created
+ mailbox that somebody else had just created */
+ return 0;
+ }
if (MAILBOX_IS_NEVER_IN_INDEX(box))
return 0;
More information about the dovecot-cvs
mailing list