dovecot-2.2: acl: Log which ACL groups are enabled with mail_deb...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 8 10:20:16 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/500e8dd7a389
changeset: 19128:500e8dd7a389
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 08 13:18:58 2015 +0300
description:
acl: Log which ACL groups are enabled with mail_debug=yes
diffstat:
src/plugins/acl/acl-backend.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r cb4fcdc716e2 -r 500e8dd7a389 src/plugins/acl/acl-backend.c
--- a/src/plugins/acl/acl-backend.c Tue Sep 08 13:07:59 2015 +0300
+++ b/src/plugins/acl/acl-backend.c Tue Sep 08 13:18:58 2015 +0300
@@ -66,8 +66,11 @@
backend->group_count = group_count;
backend->groups =
p_new(backend->pool, const char *, group_count);
- for (i = 0; i < group_count; i++)
+ for (i = 0; i < group_count; i++) {
backend->groups[i] = p_strdup(backend->pool, groups[i]);
+ if (user->mail_debug)
+ i_debug("acl: group added: %s", groups[i]);
+ }
i_qsort(backend->groups, group_count, sizeof(const char *),
i_strcmp_p);
}
More information about the dovecot-cvs
mailing list