From 12325e3208bbbe12ea602b535348f9d7674610c3 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Thu, 20 Feb 2025 22:38:40 +0100 Subject: [PATCH] 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. --- src/imap/cmd-list.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.3