dovecot-2.1: imapc: Fixed assert-crashing when deleting a mailbox

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 7 15:46:55 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/f7de547a54d5
changeset: 13424:f7de547a54d5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 07 15:46:43 2011 +0300
description:
imapc: Fixed assert-crashing when deleting a mailbox

diffstat:

 src/lib-storage/index/imapc/imapc-sync.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r c943580d3a1b -r f7de547a54d5 src/lib-storage/index/imapc/imapc-sync.c
--- a/src/lib-storage/index/imapc/imapc-sync.c	Wed Sep 07 11:52:08 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-sync.c	Wed Sep 07 15:46:43 2011 +0300
@@ -318,7 +318,8 @@
 	mbox->min_append_uid = mail_index_get_header(ctx->sync_view)->next_uid;
 
 	mbox->syncing = TRUE;
-	imapc_sync_index(ctx);
+	if (!mbox->box.deleting)
+		imapc_sync_index(ctx);
 
 	mail_index_view_close(&mbox->delayed_sync_view);
 	mbox->delayed_sync_trans = NULL;


More information about the dovecot-cvs mailing list