Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8971:163c3f85a3aa HEAD
namespaces: list=children wasn't working correctly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Apr 2009 13:28:00 -0400 |
parents | 6a4cccf11702 |
children | 9ab0177cd004 |
files | src/imap/cmd-list.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {