dovecot-2.1: lib-storage: Open index with MAIL_INDEX_OPEN_FLAG_S...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 18 05:23:39 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/b7c6215b2b7c
changeset: 14768:b7c6215b2b7c
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 18 05:23:27 2012 +0300
description:
lib-storage: Open index with MAIL_INDEX_OPEN_FLAG_SAVEONLY if mailbox has MAILBOX_FLAG_SAVEONLY
diffstat:
src/lib-storage/index/index-storage.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 51f2be9aa8ad -r b7c6215b2b7c src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Thu Oct 18 05:22:36 2012 +0300
+++ b/src/lib-storage/index/index-storage.c Thu Oct 18 05:23:27 2012 +0300
@@ -304,6 +304,8 @@
ibox->list_index_sync_ext_id = (uint32_t)-1;
ibox->index_flags = MAIL_INDEX_OPEN_FLAG_CREATE |
mail_storage_settings_to_index_flags(box->storage->set);
+ if ((box->flags & MAILBOX_FLAG_SAVEONLY) != 0)
+ ibox->index_flags |= MAIL_INDEX_OPEN_FLAG_SAVEONLY;
ibox->next_lock_notify = time(NULL) + LOCK_NOTIFY_INTERVAL;
MODULE_CONTEXT_SET(box, index_storage_module, ibox);
More information about the dovecot-cvs
mailing list