From: Timo Sirainen Date: Tue, 13 Jul 2010 20:04:55 +0000 (+0100) Subject: imap: Fixed checking if list=children namespace has children. X-Git-Tag: 2.0.rc3~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d4dc4c96ff696aedce32fb0571b6d5ff91ae0f;p=thirdparty%2Fdovecot%2Fcore.git imap: Fixed checking if list=children namespace has children. --- diff --git a/src/imap/cmd-list.c b/src/imap/cmd-list.c index 0dcce60cb3..8022ea6e50 100644 --- a/src/imap/cmd-list.c +++ b/src/imap/cmd-list.c @@ -205,7 +205,8 @@ static bool list_namespace_has_children(struct cmd_list_context *ctx) if ((ctx->list_flags & MAILBOX_LIST_ITER_SELECT_SUBSCRIBED) != 0) list_flags |= MAILBOX_LIST_ITER_SELECT_SUBSCRIBED; - list_iter = mailbox_list_iter_init(ctx->ns->list, "%", list_flags); + list_iter = mailbox_list_iter_init(ctx->ns->list, + t_strconcat(ctx->ns->prefix, "%", NULL), list_flags); info = mailbox_list_iter_next(list_iter); if (info != NULL) ret = TRUE;