summaryrefslogtreecommitdiffstats
path: root/pykolab/imap/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/imap/__init__.py')
-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