dovecot-2.0: lib-storage: If mailbox is already open in mailbox_...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 4 13:20:35 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/b6de838fac0e
changeset: 13065:b6de838fac0e
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 04 13:20:21 2012 +0200
description:
lib-storage: If mailbox is already open in mailbox_enable(), enable modseqs.

diffstat:

 src/lib-storage/index/index-storage.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r b207e0b155bd -r b6de838fac0e src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c	Sun Mar 04 13:19:03 2012 +0200
+++ b/src/lib-storage/index/index-storage.c	Sun Mar 04 13:20:21 2012 +0200
@@ -267,8 +267,11 @@
 int index_storage_mailbox_enable(struct mailbox *box,
 				 enum mailbox_feature feature)
 {
-	if ((feature & MAILBOX_FEATURE_CONDSTORE) != 0)
+	if ((feature & MAILBOX_FEATURE_CONDSTORE) != 0) {
 		box->enabled_features |= MAILBOX_FEATURE_CONDSTORE;
+		if (box->opened)
+			mail_index_modseq_enable(box->index);
+	}
 	return 0;
 }
 


More information about the dovecot-cvs mailing list