From: Timo Sirainen Date: Thu, 20 Mar 2003 17:19:03 +0000 (+0200) Subject: LIST "" foo.% doesn't anymore reply "foo." folder. X-Git-Tag: 1.1.alpha1~4797 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b3078260dae9082e422d2f72fa225db73eb0821;p=thirdparty%2Fdovecot%2Fcore.git LIST "" foo.% doesn't anymore reply "foo." folder. --HG-- branch : HEAD --- 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) {