summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
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 20:25:15 +0100
commit17c07881190307e14294e2887c055632297b3200 (patch)
tree2aef7c94b108361a0aefda35d29749b60262e5ac /pykolab/imap
parent643a625bd75bcdc098b3c04ed7366207efb0dad0 (diff)
downloadpykolab-17c07881190307e14294e2887c055632297b3200.tar.gz
Correct conversion to utf7
Diffstat (limited to 'pykolab/imap')
-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 8855909..63245d6 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -208,6 +208,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)
@@ -245,7 +247,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):
"""