]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
namespaces: list=children wasn't working correctly.
authorTimo Sirainen <tss@iki.fi>
Mon, 20 Apr 2009 17:28:00 +0000 (13:28 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 20 Apr 2009 17:28:00 +0000 (13:28 -0400)
--HG--
branch : HEAD

src/imap/cmd-list.c

index fa83246cfe1fdeec3c123fe88836a19f2a95718d..ff1b5909be5011713423ecd23cf8ffe145c1e9e4 100644 (file)
@@ -214,8 +214,7 @@ static bool list_namespace_has_children(struct cmd_list_context *ctx)
        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 @@ static const char *ns_get_listed_prefix(struct cmd_list_context *ctx,
                match = imap_match(glob, ns_prefix);
        }
        i_assert(match == IMAP_MATCH_YES);
-       *have_children = TRUE;
        return ns_prefix;
 }
 
@@ -275,7 +273,7 @@ list_namespace_send_prefix(struct cmd_list_context *ctx, bool have_children)
                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)) {