dovecot-1.2: namespaces: list=children wasn't working correctly.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 20 20:28:07 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/163c3f85a3aa
changeset: 8971:163c3f85a3aa
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 20 13:28:00 2009 -0400
description:
namespaces: list=children wasn't working correctly.

diffstat:

1 file changed, 2 insertions(+), 4 deletions(-)
src/imap/cmd-list.c |    6 ++----

diffs (30 lines):

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 @@ static bool list_namespace_has_children(
 	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(
 		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_li
 		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)) {


More information about the dovecot-cvs mailing list