]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox could have listed INBOX twice.
authorTimo Sirainen <tss@iki.fi>
Fri, 8 Aug 2008 20:45:23 +0000 (16:45 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 8 Aug 2008 20:45:23 +0000 (16:45 -0400)
--HG--
branch : HEAD

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

index 6b59f3a9cfbffd1b2691e643f95cbed5b75b389f..e9ebdfc56fb676761dcba39f80dfa23f11a4dca4 100644 (file)
@@ -412,6 +412,7 @@ list_file_inbox(struct fs_list_iterate_context *ctx, const char *fname)
        /* INBOX/ directory. show the INBOX list now */
        if ((ctx->ctx.list->flags & MAILBOX_LIST_FLAG_MAILBOX_FILES) == 0) {
                /* this directory is the INBOX */
+               ctx->inbox_found = TRUE;
        } else if (!ctx->inbox_found) {
                (void)fs_list_inbox(ctx);
                ctx->info.flags &= ~(MAILBOX_NOSELECT | MAILBOX_NONEXISTENT |