summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-07 12:34:03 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-07 12:34:03 +0100
commit3b33a5031b05ae2ce7918202d080bdd6d8c64380 (patch)
treec282b8896801ad23b05f974c953573b905efe58b /pykolab/imap
parent308a4de06956e31584e458f78907656a28649da4 (diff)
downloadpykolab-3b33a5031b05ae2ce7918202d080bdd6d8c64380.tar.gz
Add new command-line utility commands lam, sam and dam (list, set and delete ACLs entries on mailboxes)
Diffstat (limited to 'pykolab/imap')
-rw-r--r--pykolab/imap/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index e5344c7..65c232c 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -248,6 +248,13 @@ class IMAP(object):
return (_personal, _other_users, _shared)
+ def set_acl(self, folder, identifier, acl):
+ """
+ Set an ACL entry on a folder.
+ """
+
+ self.imap.sam(folder, identifier, acl)
+
def shared_folder_create(self, folder_path, server=None):
"""
Create a shared folder.
@@ -767,6 +774,12 @@ class IMAP(object):
def get_quota_root(self, mailfolder_path):
return self.lqr(mailfolder_path)
+ def list_acls(self, folder):
+ """
+ List the ACL entries on a folder
+ """
+ return self.imap.lam(folder)
+
def list_user_folders(self, primary_domain=None, secondary_domains=[]):
"""
List the INBOX folders in the IMAP backend. Returns a list of unique