# HG changeset patch # User Timo Sirainen # Date 1240248480 14400 # Node ID 163c3f85a3aad18b0742a8b962a0b679c6b2b6bb # Parent 6a4cccf117025e79ad29d966d03ceaa85d02372d namespaces: list=children wasn't working correctly. diff -r 6a4cccf11702 -r 163c3f85a3aa src/imap/cmd-list.c --- a/src/imap/cmd-list.c Mon Apr 20 12:57:32 2009 -0400 +++ b/src/imap/cmd-list.c Mon Apr 20 13:28:00 2009 -0400 @@ -214,8 +214,7 @@ return ret; } -static const char *ns_get_listed_prefix(struct cmd_list_context *ctx, - bool *have_children) +static const char *ns_get_listed_prefix(struct cmd_list_context *ctx) { struct imap_match_glob *glob; enum imap_match_result match; @@ -237,7 +236,6 @@ match = imap_match(glob, ns_prefix); } i_assert(match == IMAP_MATCH_YES); - *have_children = TRUE; return ns_prefix; } @@ -275,7 +273,7 @@ flags = MAILBOX_NONEXISTENT; } - name = ns_get_listed_prefix(ctx, &have_children); + name = ns_get_listed_prefix(ctx); if ((flags & MAILBOX_CHILDREN) == 0) { if (have_children || list_namespace_has_children(ctx)) {