From be9a813f051b598c88f2e18ecbaf3af39de609c9 Mon Sep 17 00:00:00 2001 From: Siavash Tavakoli Date: Thu, 4 Feb 2021 01:42:52 +0000 Subject: [PATCH] lib-storage: Skip private server attributes for shared inboxes Private server attributes should be iterated only for user's own inbox. --- src/lib-storage/mailbox-attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-storage/mailbox-attribute.c b/src/lib-storage/mailbox-attribute.c index 908356959f..d41a8beeac 100644 --- a/src/lib-storage/mailbox-attribute.c +++ b/src/lib-storage/mailbox-attribute.c @@ -510,7 +510,7 @@ mailbox_attribute_iter_init(struct mailbox *box, /* copy relevant attributes */ array_foreach(&extra_attrs, attr) { /* skip internal server attributes unless we're iterating inbox */ - if (!box->inbox_any && + if (!box->inbox_user && strncmp(*attr, MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER, strlen(MAILBOX_ATTRIBUTE_PREFIX_DOVECOT_PVT_SERVER)) == 0) continue; -- 2.47.3