diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-08-08 15:04:02 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-08-09 13:26:29 +0100 |
commit | c3b6340193458d39fd83b67d8c3cf9ad0869cb44 (patch) | |
tree | f03df732bd151a75186114ed0003e5e32351f3ed /pykolab | |
parent | 6edd913b83e57e2df5b8403c3fb9757d237003fe (diff) | |
download | pykolab-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.py | 8 |
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 |