From: Timo Sirainen Date: Sat, 21 Jun 2008 09:22:01 +0000 (+0300) Subject: Make sure the mailbox is opened when enabling modseqs (fixes a STATUS crash). X-Git-Tag: 1.2.alpha1~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e348eb02a226f6b9ddd2697a709cade03514488a;p=thirdparty%2Fdovecot%2Fcore.git Make sure the mailbox is opened when enabling modseqs (fixes a STATUS crash). --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-storage.c b/src/lib-storage/index/index-storage.c index 4314eb93b8..59c943bff9 100644 --- a/src/lib-storage/index/index-storage.c +++ b/src/lib-storage/index/index-storage.c @@ -453,6 +453,8 @@ int index_storage_mailbox_enable(struct mailbox *box, 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;