blob: b446dcd42996cb1d0b0f291cd23a8e289c1ce9bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}
|