All mailboxes in a public namespace are typically in dovecot-acl-list anyway.
--HG--
branch : HEAD
MAILBOX_LIST_ITER_SELECT_SUBSCRIBED)) != 0)
return;
+ if (ns->type == NAMESPACE_PUBLIC) {
+ /* mailboxes in public namespace should all be listable to
+ someone. we don't benefit from fast listing. */
+ 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;