dovecot-2.0: lib-storage: mailbox_enable() shouldn't actually op...
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/b207e0b155bd
changeset: 13064:b207e0b155bd
user: Timo Sirainen <tss at iki.fi>
date: Sun Mar 04 13:19:03 2012 +0200
description:
lib-storage: mailbox_enable() shouldn't actually open the mailbox.
This combined with mailbox_get_status() never synced the mailbox, so if
there were any changes they weren't visible in STATUS reply.
diffstat:
src/lib-storage/index/index-storage.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (29 lines):
diff -r 06555bd6d938 -r b207e0b155bd src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Wed Feb 29 19:57:26 2012 +0200
+++ b/src/lib-storage/index/index-storage.c Sun Mar 04 13:19:03 2012 +0200
@@ -203,6 +203,9 @@
box->opened = TRUE;
+ if ((box->enabled_features & MAILBOX_FEATURE_CONDSTORE) != 0)
+ mail_index_modseq_enable(box->index);
+
index_thread_mailbox_opened(box);
hook_mailbox_opened(box);
@@ -264,14 +267,8 @@
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 (mailbox_open(box) < 0)
- return -1;
- T_BEGIN {
- mail_index_modseq_enable(box->index);
- } T_END;
- }
return 0;
}
More information about the dovecot-cvs
mailing list