summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-08 15:04:02 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-08 15:04:02 +0100
commitfd3e861d85da2093be6d579e253e4290bf8ce932 (patch)
tree83c6bc398620b714ca97c1bfdddbd85a39ec05bc /pykolab
parentdab08039fcd528f60b4703ec13b79cf3f3224314 (diff)
downloadpykolab-fd3e861d85da2093be6d579e253e4290bf8ce932.tar.gz
Print mailbox ACLs listed in a somewhat parseable format
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/cli/cmd_list_mailbox_acls.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pykolab/cli/cmd_list_mailbox_acls.py b/pykolab/cli/cmd_list_mailbox_acls.py
index 10a3321..7f4a9fc 100644
--- a/pykolab/cli/cmd_list_mailbox_acls.py
+++ b/pykolab/cli/cmd_list_mailbox_acls.py
@@ -55,7 +55,9 @@ def execute(*args, **kw):
acls = []
folders = imap.lm(folder)
for folder in folders:
- acls.append((folder, imap.list_acls(folder)))
+ print "Folder", folder
+ acls = imap.list_acls(folder)
+
+ for acl in acls.keys():
+ print " %-13s %s" %(acls[acl], acl)
- for folder, acl in acls:
- print folder, acl