From: Timo Sirainen Date: Thu, 8 Dec 2011 09:41:01 +0000 (+0200) Subject: lib-storage: Fixed listing INBOX's children with layout=fs and non-mbox format. X-Git-Tag: 2.1.rc2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16dc6ccdae52603fb8a0410d603a823c0b7de613;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Fixed listing INBOX's children with layout=fs and non-mbox format. --- diff --git a/src/lib-storage/list/mailbox-list-fs-iter.c b/src/lib-storage/list/mailbox-list-fs-iter.c index 06552efca4..6f918e7123 100644 --- a/src/lib-storage/list/mailbox-list-fs-iter.c +++ b/src/lib-storage/list/mailbox-list-fs-iter.c @@ -349,7 +349,8 @@ static void inbox_flags_set(struct fs_list_iterate_context *ctx) ctx->info.flags &= ~(MAILBOX_NOSELECT | MAILBOX_NONEXISTENT); if (*ns->prefix != '\0' && - (ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0) { + (ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0 && + (ctx->ctx.list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) != 0) { /* we're listing INBOX for a namespace with a prefix. if there are children for the INBOX, they're returned under the mailbox prefix, not under the INBOX itself. */