The local dovecot-acl files aren't even attempted to be looked up if this is
set. This is mainly useful to avoid unnecessary stat()s to dovecot-acl files
that never exist.
bool owner:1;
bool debug:1;
+ bool globals_only:1;
};
struct acl_mailbox_list_context {
if (*name == '\0')
name = NULL;
+ if (backend->globals_only)
+ return NULL;
+
/* ACL files are very important. try to keep them among the main
mail files. that's not possible though with a) if the mailbox is
a file or b) if the mailbox path doesn't point to filesystem. */
ns->type == MAIL_NAMESPACE_TYPE_SHARED)
default_name = "INBOX";
}
+ backend->globals_only =
+ mail_user_plugin_getenv_bool(user, "acl_globals_only");
backend->default_aclobj =
acl_object_init_from_name(backend, default_name);
return backend->default_aclobj;