dovecot-2.2: mailbox_list_index=yes: Fixed listing nonexistent s...

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 4 16:38:01 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/e3c96c74eec8
changeset: 15022:e3c96c74eec8
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 04 16:37:55 2012 +0300
description:
mailbox_list_index=yes: Fixed listing nonexistent subscribed mailboxes

diffstat:

 src/lib-storage/list/mailbox-list-index-iter.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 5420e5c93bda -r e3c96c74eec8 src/lib-storage/list/mailbox-list-index-iter.c
--- a/src/lib-storage/list/mailbox-list-index-iter.c	Tue Sep 04 16:23:12 2012 +0300
+++ b/src/lib-storage/list/mailbox-list-index-iter.c	Tue Sep 04 16:37:55 2012 +0300
@@ -27,7 +27,11 @@
 	ctx->sep = ns_sep;
 	ctx->info_pool = pool_alloconly_create("mailbox list index iter info", 128);
 
+	/* for now we don't use indexes when listing subscriptions, because
+	   it needs to list also the nonexistent subscribed mailboxes, which
+	   don't exist in the index. */
 	if ((flags & MAILBOX_LIST_ITER_RAW_LIST) != 0 ||
+	    (flags & MAILBOX_LIST_ITER_SELECT_SUBSCRIBED) != 0 ||
 	    mailbox_list_index_refresh(ctx->ctx.list) < 0) {
 		/* no indexing */
 		ctx->backend_ctx = ilist->module_ctx.super.


More information about the dovecot-cvs mailing list