summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 18:03:08 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 18:05:50 +0100
commit9c5a9c6d076317b4ab12a8c7da0a44984bf65dd1 (patch)
tree8d8d051bed0e1e39b34bfbf97f131e17edfe7fa5
parentdb06665be4e8356208c975b87fb1f6750a1e842f (diff)
downloadpykolab-9c5a9c6d076317b4ab12a8c7da0a44984bf65dd1.tar.gz
Correct conversion to utf7
-rw-r--r--pykolab/imap/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 5e72769..6933adb 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -197,6 +197,8 @@ class IMAP(object):
log.warning(_("Called imap.disconnect() on a server that we had no connection to."))
def create_folder(self, folder_path, server=None):
+ folder_path = self.folder_utf7(folder_path)
+
if not server == None:
if not self._imap.has_key(server):
self.connect(server=server)
@@ -213,7 +215,7 @@ class IMAP(object):
def folder_utf7(self, folder):
from pykolab import imap_utf7
- return imap_utf7.encode(folder_path)
+ return imap_utf7.encode(folder)
def get_metadata(self, folder):
"""