]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: cmd-list - Add assert to list_send_status()
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 20 Feb 2025 21:38:40 +0000 (22:38 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 25 Feb 2025 11:24:51 +0000 (11:24 +0000)
While listing subscriptions, but only child is subscribed, the appropriate
mailbox info flag must be also set.

src/imap/cmd-list.c

index dd6c00ed60b35801bad47426cf62c81560a436be..4b8da85c6659129c52da87cf9a5327a93009e359 100644 (file)
@@ -193,6 +193,7 @@ list_send_status(struct cmd_list_context *ctx, const char *name,
        if ((flags & MAILBOX_SUBSCRIBED) == 0 &&
            (ctx->list_flags & MAILBOX_LIST_ITER_SELECT_SUBSCRIBED) != 0) {
                /* listing subscriptions, but only child is subscribed */
+               i_assert((flags & MAILBOX_CHILD_SUBSCRIBED) != 0);
                return;
        }