Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8016:8b240457c4a4 HEAD
LIST didn't show INBOX if list patterns didn't match namespace prefix.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 20 Jul 2008 16:03:13 +0300 |
parents | 73b4fe95a6dd |
children | 4a80a7ec7c6a |
files | src/imap/cmd-list.c |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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);