]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fs layout: Fixed listing child mailboxes under INBOX.
authorTimo Sirainen <tss@iki.fi>
Mon, 29 Mar 2010 14:47:44 +0000 (17:47 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 29 Mar 2010 14:47:44 +0000 (17:47 +0300)
--HG--
branch : HEAD

src/lib-storage/list/mailbox-list-fs-iter.c

index 966ddf92860927c663cbd9880cc28f7019fe311f..c26034916d23fbbc42312c448ada3c7ab1624315 100644 (file)
@@ -441,8 +441,11 @@ list_file_inbox(struct fs_list_iterate_context *ctx, const char *fname)
        }
        inbox_flags_set(ctx);
 
-       if (list_file_is_inbox(ctx, fname)) {
-               /* delay listing in case there's a INBOX/ directory */
+       if (list_file_is_inbox(ctx, fname) &&
+           (ctx->ctx.list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) != 0) {
+               /* delay listing in case there's a INBOX/ directory.
+                  do this only when INBOX is a file! otherwise we won't list
+                  INBOX children. */
                ctx->inbox_found = TRUE;
                ctx->inbox_flags = ctx->info.flags;
                return FALSE;