dovecot-2.2: lib-storage: Set MAILBOX_SELECT/NONEXISTENT for nam...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 23 09:34:30 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/e6cb25855abf
changeset: 18886:e6cb25855abf
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 23 11:31:21 2015 +0200
description:
lib-storage: Set MAILBOX_SELECT/NONEXISTENT for namespace prefix even if no flags are wanted.
This fixes doveadm commands attempting to access such nonexistent mailbox
prefixes.

diffstat:

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

diffs (13 lines):

diff -r 563b93302831 -r e6cb25855abf src/lib-storage/list/mailbox-list-iter.c
--- a/src/lib-storage/list/mailbox-list-iter.c	Tue Jun 23 11:30:27 2015 +0200
+++ b/src/lib-storage/list/mailbox-list-iter.c	Tue Jun 23 11:31:21 2015 +0200
@@ -501,8 +501,7 @@
 		}
 	}
 
-	if ((ctx->ctx.flags & MAILBOX_LIST_ITER_RETURN_NO_FLAGS) == 0 &&
-	    (ctx->ns_info.flags & MAILBOX_SELECT) == 0) {
+	if ((ctx->ns_info.flags & MAILBOX_SELECT) == 0) {
 		/* see if namespace prefix is selectable */
 		box = mailbox_alloc(ns->list, ctx->ns_info.vname, 0);
 		if (mailbox_exists(box, TRUE, &existence) == 0 &&


More information about the dovecot-cvs mailing list