pykolab/imap

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Thu Jul 31 10:57:09 CEST 2014


 pykolab/imap/cyrus.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b00ea314f722fb2ba455e9a90bbd7f7616767946
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Thu Jul 31 10:55:04 2014 +0200

    Ensure that UTF-7 is encoded as such

diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
index 2f16e1f..f09e429 100644
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -384,9 +384,9 @@ class Cyrus(cyruslib.CYRUS):
                 verify_folder_search = "%s@%s" % (verify_folder_search, mbox['domain'])
 
             if ' ' in verify_folder_search:
-                folders = self.lm('"%s"' % verify_folder_search)
+                folders = self.lm('"%s"' % self.folder_utf7(verify_folder_search))
             else:
-                folders = self.lm(verify_folder_search)
+                folders = self.lm(self.folder_utf7(verify_folder_search))
 
             # NOTE: Case also covered is valid hexadecimal folders; won't be the
             # actual check as intended, but doesn't give you anyone else's data




More information about the commits mailing list