# HG changeset patch # User Timo Sirainen # Date 1297116388 -7200 # Node ID 96c284f7548f6fbda470a27ddf4551348fccaa40 # Parent 951d89021e5f2cf570980f9221fe6906dadebe8a lib-storage: Crashfix to layout=fs. diff -r 951d89021e5f -r 96c284f7548f src/lib-storage/list/mailbox-list-fs-iter.c --- a/src/lib-storage/list/mailbox-list-fs-iter.c Sat Feb 05 04:43:49 2011 +0200 +++ b/src/lib-storage/list/mailbox-list-fs-iter.c Tue Feb 08 00:06:28 2011 +0200 @@ -388,8 +388,10 @@ (ctx->info.flags & MAILBOX_NONEXISTENT) != 0) return NULL; - mailbox_list_set_subscription_flags(ctx->ctx.list, "INBOX", - &ctx->info.flags); + if ((ctx->ctx.flags & MAILBOX_LIST_ITER_RETURN_SUBSCRIBED) != 0) { + mailbox_list_set_subscription_flags(ctx->ctx.list, "INBOX", + &ctx->info.flags); + } inbox_flags_set(ctx); /* we got here because we didn't see INBOX among other mailboxes, which means it has no children. */ @@ -569,8 +571,10 @@ return 1; } - mailbox_list_set_subscription_flags(ctx->ctx.list, list_path, - &ctx->info.flags); + if ((ctx->ctx.flags & MAILBOX_LIST_ITER_RETURN_SUBSCRIBED) != 0) { + mailbox_list_set_subscription_flags(ctx->ctx.list, list_path, + &ctx->info.flags); + } /* make sure we give only one correct INBOX */ if ((ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0) {