From 6b3078260dae9082e422d2f72fa225db73eb0821 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 20 Mar 2003 19:19:03 +0200 Subject: [PATCH] LIST "" foo.% doesn't anymore reply "foo." folder. --HG-- branch : HEAD --- src/imap/cmd-list.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/imap/cmd-list.c b/src/imap/cmd-list.c index fc1af1abe9..6e50c1b3e6 100644 --- a/src/imap/cmd-list.c +++ b/src/imap/cmd-list.c @@ -139,11 +139,18 @@ static void list_send(struct list_send_context *ctx, struct list_node *node, buf = str_unescape(t_strdup_noconst(name)); match = imap_match(ctx->glob, buf); - if (match == IMAP_MATCH_CHILDREN) { + /* FIXME: IMAP spec says this should be done, but + a) this is broken, we shouldn't give \NoSelect for + this folder if it actually works. + b) at least mozilla's subscriptions list breaks if + this is sent + c) cyrus and courier doesn't do this either.. + + if (match == IMAP_MATCH_CHILDREN) { send_name = t_strconcat(name, ctx->sep, NULL); buf = str_unescape(t_strdup_noconst(send_name)); match = imap_match(ctx->glob, buf); - } + }*/ } if (match == IMAP_MATCH_YES) { -- 2.47.3