dovecot-1.2: acl: We stopped calling hook_mail_storage_created f...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 2 05:25:01 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/c9ed3bf730b9
changeset: 8697:c9ed3bf730b9
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 01 22:24:56 2009 -0500
description:
acl: We stopped calling hook_mail_storage_created for internal namespaces.
diffstat:
1 file changed, 12 insertions(+), 13 deletions(-)
src/plugins/acl/acl-storage.c | 25 ++++++++++++-------------
diffs (35 lines):
diff -r 20345491824c -r c9ed3bf730b9 src/plugins/acl/acl-storage.c
--- a/src/plugins/acl/acl-storage.c Sat Jan 31 20:15:12 2009 +0200
+++ b/src/plugins/acl/acl-storage.c Sun Feb 01 22:24:56 2009 -0500
@@ -174,19 +174,18 @@ void acl_mail_storage_created(struct mai
if ((storage->ns->flags & NAMESPACE_FLAG_INTERNAL) != 0) {
/* no ACL checks for internal namespaces (deliver) */
- return;
- }
-
- astorage = p_new(storage->pool, struct acl_mail_storage, 1);
- astorage->module_ctx.super = storage->v;
- storage->v.destroy = acl_storage_destroy;
- storage->v.mailbox_open = acl_mailbox_open;
- storage->v.mailbox_create = acl_mailbox_create;
-
- backend = acl_mailbox_list_get_backend(mail_storage_get_list(storage));
- acl_storage_rights_ctx_init(&astorage->rights, backend);
-
- MODULE_CONTEXT_SET(storage, acl_storage_module, astorage);
+ } else {
+ astorage = p_new(storage->pool, struct acl_mail_storage, 1);
+ astorage->module_ctx.super = storage->v;
+ storage->v.destroy = acl_storage_destroy;
+ storage->v.mailbox_open = acl_mailbox_open;
+ storage->v.mailbox_create = acl_mailbox_create;
+
+ backend = acl_mailbox_list_get_backend(mail_storage_get_list(storage));
+ acl_storage_rights_ctx_init(&astorage->rights, backend);
+
+ MODULE_CONTEXT_SET(storage, acl_storage_module, astorage);
+ }
if (acl_next_hook_mail_storage_created != NULL)
acl_next_hook_mail_storage_created(storage);
More information about the dovecot-cvs
mailing list