summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 17:00:42 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-06-13 17:00:42 +0100
commit185be06162c19d9b4a5bacdfb10912829bcb79b6 (patch)
tree8bcbbccad76b329135c53a22e74efe035a175e64 /pykolab/imap
parent85e9ef8d3e5a8f4204b4bff2c546d3b1cc4dfe0d (diff)
downloadpykolab-185be06162c19d9b4a5bacdfb10912829bcb79b6.tar.gz
Add set_quota()
Diffstat (limited to 'pykolab/imap')
-rw-r--r--pykolab/imap/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 047e908..25ec560 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -503,6 +503,9 @@ class IMAP(object):
else:
log.debug(_("Value for user is not a dictionary"), level=8)
+ def set_quota(self, folder, quota):
+ self.imap._setquota(folder, quota)
+
def set_user_folder_quota(self, users=[], primary_domain=None, secondary_domain=[], folders=[]):
"""
@@ -698,7 +701,10 @@ class IMAP(object):
self.imap.dm(mailfolder_path)
def get_quota(self, mailfolder_path):
- return self.lq(mailfolder_path)
+ try:
+ return self.lq(mailfolder_path)
+ except:
+ return
def get_quota_root(self, mailfolder_path):
return self.lqr(mailfolder_path)