]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
layout=fs: Fixed listing mailboxes under INBOX with non-mbox storages.
authorTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 02:04:46 +0000 (21:04 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 02:04:46 +0000 (21:04 -0500)
--HG--
branch : HEAD

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

index 4243a276153404ec4890ce99bee35b903ee06c74..54f14c61bdf8de80371a539bdd7ec112655b9df7 100644 (file)
@@ -434,6 +434,9 @@ list_file_is_inbox(struct fs_list_iterate_context *ctx, const char *fname)
 {
        const char *real_path, *inbox_path;
 
+       if ((ctx->ctx.list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) == 0)
+               return FALSE;
+
        real_path = t_strconcat(ctx->dir->real_path, "/", fname, NULL);
        inbox_path = mailbox_list_get_path(ctx->ctx.list, "INBOX",
                                           MAILBOX_LIST_PATH_TYPE_DIR);