changeset 7926:187183c360dd HEAD

Make sure the mailbox is opened when enabling modseqs (fixes a STATUS crash).
author Timo Sirainen <tss@iki.fi>
date Sat, 21 Jun 2008 12:22:01 +0300
parents 4a166ccec256
children 2351a81ce699
files src/lib-storage/index/index-storage.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 	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;