Mercurial > dovecot > core-2.2
changeset 12805:6c4f67202ebf
doveadm acl debug: Show also if mailbox has private flags.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 04 Mar 2011 17:51:46 +0200 |
parents | a2120ee55303 |
children | 20b173d061d9 |
files | src/plugins/acl/doveadm-acl.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/acl/doveadm-acl.c Fri Mar 04 03:22:45 2011 +0200 +++ b/src/plugins/acl/doveadm-acl.c Fri Mar 04 17:51:46 2011 +0200 @@ -3,6 +3,7 @@ #include "lib.h" #include "str.h" #include "module-dir.h" +#include "imap-util.h" #include "acl-plugin.h" #include "acl-api-private.h" #include "acl-lookup-dict.h" @@ -300,8 +301,17 @@ struct acl_mailbox_list_context *iter; struct acl_lookup_dict_iter *diter; const char *const *rights, *name; + string_t *str; int ret; + if (box->private_flags_mask == 0) + i_info("All message flags are shared across users in mailbox"); + else { + str = t_str_new(64); + imap_write_flags(str, box->private_flags_mask, NULL); + i_info("Per-user private flags in mailbox: %s", str_c(str)); + } + /* check if user has lookup right */ if (acl_object_get_my_rights(aclobj, pool_datastack_create(), &rights) < 0)