From: Stephan Bosch Date: Thu, 20 Feb 2025 21:38:40 +0000 (+0100) Subject: imap: cmd-list - Add assert to list_send_status() X-Git-Tag: 2.4.1~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12325e3208bbbe12ea602b535348f9d7674610c3;p=thirdparty%2Fdovecot%2Fcore.git imap: cmd-list - Add assert to list_send_status() While listing subscriptions, but only child is subscribed, the appropriate mailbox info flag must be also set. --- diff --git a/src/imap/cmd-list.c b/src/imap/cmd-list.c index dd6c00ed60..4b8da85c66 100644 --- a/src/imap/cmd-list.c +++ b/src/imap/cmd-list.c @@ -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; }