Mercurial > dovecot > core-2.2
changeset 18886:e6cb25855abf
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 23 Jun 2015 11:31:21 +0200 |
parents | 563b93302831 |
children | 459cced0a15d |
files | src/lib-storage/list/mailbox-list-iter.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 &&