]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: list_send_status() - Fixes LIST-EXTENDED doesn't return STATUS for all folders
authorMarco Bettini <marco.bettini@open-xchange.com>
Wed, 13 Oct 2021 11:49:43 +0000 (14:49 +0300)
committerMarco Bettini <marco.bettini@open-xchange.com>
Thu, 14 Oct 2021 13:50:12 +0000 (16:50 +0300)
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

src/imap/cmd-list.c

index 10c4b5dfff27cb99833093ababb4678c69a49c23..dd6c00ed60b35801bad47426cf62c81560a436be 100644 (file)
@@ -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;
        }