From: Marco Bettini Date: Wed, 13 Oct 2021 11:49:43 +0000 (+0300) Subject: imap: list_send_status() - Fixes LIST-EXTENDED doesn't return STATUS for all folders X-Git-Tag: 2.3.18~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=351b424a37bf4604604e832df9ab88d0df2fba75;p=thirdparty%2Fdovecot%2Fcore.git imap: list_send_status() - Fixes LIST-EXTENDED doesn't return STATUS for all folders Sending LIST .. RETURN (SUBSCRIBED STATUS (...)) did not return STATUS for folders that are not subscribed when they have a child folder that is subscribed as mandated by IMAP RFC --- diff --git a/src/imap/cmd-list.c b/src/imap/cmd-list.c index 10c4b5dfff..dd6c00ed60 100644 --- a/src/imap/cmd-list.c +++ b/src/imap/cmd-list.c @@ -191,7 +191,7 @@ list_send_status(struct cmd_list_context *ctx, const char *name, return; } if ((flags & MAILBOX_SUBSCRIBED) == 0 && - (flags & MAILBOX_CHILD_SUBSCRIBED) != 0) { + (ctx->list_flags & MAILBOX_LIST_ITER_SELECT_SUBSCRIBED) != 0) { /* listing subscriptions, but only child is subscribed */ return; }