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-09 13:26:29 +0100
commitc3b6340193458d39fd83b67d8c3cf9ad0869cb44 (patch)
treef03df732bd151a75186114ed0003e5e32351f3ed /pykolab
parent6edd913b83e57e2df5b8403c3fb9757d237003fe (diff)
downloadpykolab-c3b6340193458d39fd83b67d8c3cf9ad0869cb44.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