summaryrefslogtreecommitdiffstats
path: root/pykolab/imap
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-03-25 13:45:42 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-03-25 13:45:42 -0400
commitbaf122c45870ff1b182273e2ae3855d34d3a6e8e (patch)
treebfc5d7ce33b8ad20f062a64dc5f48a77298637da /pykolab/imap
parentcdc894bf66bc5c66337548d6baf24483647d1c2e (diff)
downloadpykolab-baf122c45870ff1b182273e2ae3855d34d3a6e8e.tar.gz
Quote resource folder names for IMAP operations
Diffstat (limited to 'pykolab/imap')
-rw-r--r--pykolab/imap/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index fbe515d..c9df6d3 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -253,6 +253,9 @@ class IMAP(object):
from pykolab import imap_utf7
return imap_utf7.decode(folder)
+ def folder_quote(self, folder):
+ return u'"' + str(folder).strip('"') + '"'
+
def get_metadata(self, folder):
"""
Obtain all metadata entries on a folder