dovecot-2.1: mailbox_list_index=yes: Don't add autocreated mailb...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 14 15:41:08 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/3550dfc4af29
changeset: 14308:3550dfc4af29
user: Timo Sirainen <tss at iki.fi>
date: Wed Mar 14 15:40:58 2012 +0200
description:
mailbox_list_index=yes: Don't add autocreated mailboxes to index before they are created.
diffstat:
src/lib-storage/list/mailbox-list-index-sync.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 316110bd18e0 -r 3550dfc4af29 src/lib-storage/list/mailbox-list-index-sync.c
--- a/src/lib-storage/list/mailbox-list-index-sync.c Wed Mar 14 15:40:35 2012 +0200
+++ b/src/lib-storage/list/mailbox-list-index-sync.c Wed Mar 14 15:40:58 2012 +0200
@@ -267,8 +267,11 @@
/* clear EXISTS-flags, so after sync we know what can be expunged */
mailbox_list_index_node_clear_exists(ilist->mailbox_tree);
+ /* don't include autocreated mailboxes in index until they're
+ actually created. */
patterns[0] = "*"; patterns[1] = NULL;
- iter = ilist->module_ctx.super.iter_init(list, patterns, 0);
+ iter = ilist->module_ctx.super.
+ iter_init(list, patterns, MAILBOX_LIST_ITER_NO_AUTO_BOXES);
while ((info = ilist->module_ctx.super.iter_next(iter)) != NULL) {
flags = 0;
if ((info->flags & MAILBOX_NONEXISTENT) != 0)
More information about the dovecot-cvs
mailing list