# HG changeset patch # User Timo Sirainen # Date 1216558993 -10800 # Node ID 8b240457c4a4f7cc7f521077d16f1613421f705a # Parent 73b4fe95a6dd643bb41deb6a8ce78ae87035a0b4 LIST didn't show INBOX if list patterns didn't match namespace prefix. diff -r 73b4fe95a6dd -r 8b240457c4a4 src/imap/cmd-list.c --- a/src/imap/cmd-list.c Sun Jul 20 15:41:57 2008 +0300 +++ b/src/imap/cmd-list.c Sun Jul 20 16:03:13 2008 +0300 @@ -619,11 +619,16 @@ } if (array_count(&used_patterns) == 0) { - /* it's possible that the namespace prefix matched, - even though its children didn't */ - if (ctx->cur_ns_send_prefix) - list_namespace_send_prefix(ctx, TRUE); - return; + if (!ctx->cur_ns_match_inbox) { + /* it's possible that the namespace prefix matched, + even though its children didn't */ + if (ctx->cur_ns_send_prefix) + list_namespace_send_prefix(ctx, TRUE); + return; + } + /* we should still list INBOX */ + pattern = "INBOX"; + array_append(&used_patterns, &pattern, 1); } (void)array_append_space(&used_patterns); /* NULL-terminate */ pat = array_idx(&used_patterns, 0);