diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/plugins/acl/acl-plugin.c | |
parent | Initial commit. (diff) | |
download | dovecot-upstream.tar.xz dovecot-upstream.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/plugins/acl/acl-plugin.c')
-rw-r--r-- | src/plugins/acl/acl-plugin.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/acl/acl-plugin.c b/src/plugins/acl/acl-plugin.c new file mode 100644 index 0000000..b446dcd --- /dev/null +++ b/src/plugins/acl/acl-plugin.c @@ -0,0 +1,27 @@ +/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */ + +#include "lib.h" +#include "mailbox-list-private.h" +#include "acl-api.h" +#include "acl-plugin.h" + + +const char *acl_plugin_version = DOVECOT_ABI_VERSION; + +static struct mail_storage_hooks acl_mail_storage_hooks = { + .mail_user_created = acl_mail_user_created, + .mailbox_list_created = acl_mailbox_list_created, + .mail_namespace_storage_added = acl_mail_namespace_storage_added, + .mailbox_allocated = acl_mailbox_allocated, + .mail_allocated = acl_mail_allocated +}; + +void acl_plugin_init(struct module *module) +{ + mail_storage_hooks_add(module, &acl_mail_storage_hooks); +} + +void acl_plugin_deinit(void) +{ + mail_storage_hooks_remove(&acl_mail_storage_hooks); +} |