summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-23 19:25:16 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-23 19:25:16 +0000
commit309aacf7f82de776229ba51f1da20b980db6b983 (patch)
treeeaa7f72a75af45cb88320c19661b893c5e012159
parentdba6cf148af7a148d134471cab5ded391e3923d6 (diff)
downloadpykolab-309aacf7f82de776229ba51f1da20b980db6b983.tar.gz
Provide convenience functions to IMAP()
-rw-r--r--pykolab/imap/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index e38dd9c..441fb8a 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -376,3 +376,17 @@ class IMAP(object):
self.set_user_folder_quota(users, primary_domain, secondary_domains, folders)
return folders
+
+ def getannotation(self, *args, **kw):
+ self._connect()
+ return self.imap.getannotation(*args, **kw)
+
+ def lm(self, *args, **kw):
+ return self.imap.lm(*args, **kw)
+
+ def undelete(self, *args, **kw):
+ from pykolab.imap.cyrus import Cyrus
+ imap = Cyrus()
+ result = imap.undelete(*args, **kw)
+ del imap
+ return result