summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-30 15:42:56 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-30 15:42:56 +0100
commitba17ba7000af0c3d770db89a9b999883d63bc5c3 (patch)
tree7156bd8e18a480a3a00953049dba7aee2f1e0ec4 /pykolab/imap
parent0277de1a46f0386468f50d0f2a5eab56ecbab866 (diff)
downloadpykolab-ba17ba7000af0c3d770db89a9b999883d63bc5c3.tar.gz
Use the internal set_metadata() function
Diffstat (limited to 'pykolab/imap')
-rw-r--r--pykolab/imap/__init__.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 242fe00..18e0528 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -337,7 +337,7 @@ class IMAP(object):
if folder_name.startswith("shared%s" % (self.imap.separator) * 2):
folder_name = folder_name[7:]
- self.imap._setannotation(folder_name, '/vendor/kolab/folder-type', folder_type)
+ self.set_metadata(folder_name, '/shared/vendor/kolab/folder-type', folder_type)
def shared_mailbox_create(self, mailbox_base_name, server=None):
"""
@@ -429,12 +429,11 @@ class IMAP(object):
if additional_folders[additional_folder].has_key("annotations"):
for annotation in additional_folders[additional_folder]["annotations"].keys():
- if conf.get('kolab', 'imap_backend') == 'cyrus-imap':
- self.imap._setannotation(
- folder_name,
- "%s" % (annotation),
- "%s" % (additional_folders[additional_folder]["annotations"][annotation])
- )
+ self.set_metadata(
+ folder_name,
+ "%s" % (annotation),
+ "%s" % (additional_folders[additional_folder]["annotations"][annotation])
+ )
if additional_folders[additional_folder].has_key("quota"):
self.imap.sq(