dovecot-2.0: doveadm acl debug: Show also if mailbox has private...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 4 17:51:53 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/6c4f67202ebf
changeset: 12636:6c4f67202ebf
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 04 17:51:46 2011 +0200
description:
doveadm acl debug: Show also if mailbox has private flags.

diffstat:

 src/plugins/acl/doveadm-acl.c |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r a2120ee55303 -r 6c4f67202ebf src/plugins/acl/doveadm-acl.c
--- 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)


More information about the dovecot-cvs mailing list