# HG changeset patch # User Timo Sirainen # Date 1251473865 14400 # Node ID aeb3affa0501f29dd96beb9ce8bc1fec095e1144 # Parent ff4c1e9f47a4d1f6b5ca80ead531c2da59a4b144 acl: Don't use dovecot-acl-list with public namespaces. All mailboxes in a public namespace are typically in dovecot-acl-list anyway. diff -r ff4c1e9f47a4 -r aeb3affa0501 src/plugins/acl/acl-mailbox-list.c --- a/src/plugins/acl/acl-mailbox-list.c Fri Aug 28 11:18:26 2009 -0400 +++ b/src/plugins/acl/acl-mailbox-list.c Fri Aug 28 11:37:45 2009 -0400 @@ -78,6 +78,12 @@ 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;