This combined with mailbox_get_status() never synced the mailbox, so if
there were any changes they weren't visible in STATUS reply.
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);
return 0;
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;
}