]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fixed listing INBOX's children with layout=fs and non-mbox format.
authorTimo Sirainen <tss@iki.fi>
Thu, 8 Dec 2011 09:41:01 +0000 (11:41 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 Dec 2011 09:41:01 +0000 (11:41 +0200)
src/lib-storage/list/mailbox-list-fs-iter.c

index 06552efca409c422710c3e25faf050fcdd8000a1..6f918e712335416eb48af9b4b7471f1929a81655 100644 (file)
@@ -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. */