]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Fix broken LIST for shared namespaces
authorMarkus Valentin <markus.valentin@open-xchange.com>
Fri, 14 May 2021 13:57:20 +0000 (15:57 +0200)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Mon, 17 May 2021 09:30:20 +0000 (11:30 +0200)
Due to the recent changes in the usage of the acl_ignore_namespace
setting shared namespaces where trying to use fast listing too. This
resulted in wrong LIST IMAP command outputs when using acl plugin.

Broken by dc8ecd38a7e54b8bb80ae97712a0d8ad4edcbed3

src/plugins/acl/acl-mailbox-list.c

index 579f43bf2f892c20bf7227e111ab6a54a71cd9f4..f1d48176ee07d02b14522f1e92e5e19e60678bd8 100644 (file)
@@ -110,6 +110,10 @@ acl_mailbox_try_list_fast(struct mailbox_list_iterate_context *_ctx)
                return;
        }
 
+       /* If ACLs are ignored for this namespace don't try fast listing. */
+       if (alist->ignore_acls)
+               return;
+
        /* if this namespace's default rights contain LOOKUP, we'll need to
           go through all mailboxes in any case. */
        idxp = alist->rights.acl_storage_right_idx + ACL_STORAGE_RIGHT_LOOKUP;