dovecot-1.2: Make sure the mailbox is opened when enabling modse...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 21 12:51:45 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/187183c360dd
changeset: 7926:187183c360dd
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 21 12:22:01 2008 +0300
description:
Make sure the mailbox is opened when enabling modseqs (fixes a STATUS crash).

diffstat:

1 file changed, 2 insertions(+)
src/lib-storage/index/index-storage.c |    2 ++

diffs (12 lines):

diff -r 4a166ccec256 -r 187183c360dd src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c	Sat Jun 21 12:21:18 2008 +0300
+++ b/src/lib-storage/index/index-storage.c	Sat Jun 21 12:22:01 2008 +0300
@@ -453,6 +453,8 @@ int index_storage_mailbox_enable(struct 
 
 	if ((feature & MAILBOX_FEATURE_CONDSTORE) != 0) {
 		box->enabled_features |= MAILBOX_FEATURE_CONDSTORE;
+		if (!box->opened)
+			index_storage_mailbox_open(ibox);
 		mail_index_modseq_enable(ibox->index);
 	}
 	return TRUE;


More information about the dovecot-cvs mailing list