bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2006-2018 Dovecot authors, see the included COPYING file */
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen MODULE_CONTEXT_INIT(&mail_storage_module_register);
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen MODULE_CONTEXT_INIT(&mail_user_module_register);
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainenstatic void acl_user_deinit(struct mail_user *user)
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen struct acl_user *auser = ACL_USER_CONTEXT(user);
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen acl_lookup_dict_deinit(&auser->acl_lookup_dict);
0df9428baed48afaff90b4d4f03792d2fd756a43Timo Sirainenstatic void acl_mail_user_create(struct mail_user *user, const char *env)
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen auser = p_new(user->pool, struct acl_user, 1);
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen auser->acl_lookup_dict = acl_lookup_dict_init(user);
dd5683e19979085fdfe9f269876f2a91ea604679Timo Sirainen auser->acl_user = mail_user_plugin_getenv(user, "acl_user");
dd5683e19979085fdfe9f269876f2a91ea604679Timo Sirainen auser->acl_user = mail_user_plugin_getenv(user, "master_user");
0df9428baed48afaff90b4d4f03792d2fd756a43Timo Sirainen env = mail_user_plugin_getenv(user, "acl_groups");
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen (const char *const *)p_strsplit(user->pool, env, ",");
81e6e1ef0feef60644a4c4b745d82a4c98223affTimo Sirainen MODULE_CONTEXT_SET(user, acl_user_module, auser);
0df9428baed48afaff90b4d4f03792d2fd756a43Timo Sirainenvoid acl_mail_user_created(struct mail_user *user)
e5acc283bf030b0b5c79ca4e52d315c516a299faPascal Volk i_debug("acl: No acl setting - ACLs are disabled");