]> khamidou — GitHub mirrors - imapclient.git/commitdiff
fixed a bug for when the status command response doesnt put quotes around the folder...
authorMenno Smits <menno@pali>
Tue, 21 Apr 2009 19:43:51 +0000 (20:43 +0100)
committerMenno Smits <menno@pali>
Tue, 21 Apr 2009 19:43:51 +0000 (20:43 +0100)
TODO
imapclient/imapclient.py

diff --git a/TODO b/TODO
index dad7672c747909e8ce9e1886d2ea76cda14b92fd..38fb8fc7f54f37e7cbf1b9e2b0f7778ac18bf9fc 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,7 +1,6 @@
 - transparent folder escaping
     - more testing
         - cyrus
-        - exchange
 
 - more testing of timezone changes
     - put server in a different timezone for a while
@@ -13,8 +12,6 @@
 
 - XXX's
 
-- a bunch of stuff doesn't work with gmail's IMAP (see livetest.py)
-
 - update docs & web site:
     - transparent folder escaping
     - changelog
 
 ---- release 0.5 ----
 
+- a bunch of stuff doesn't work with gmail's IMAP (see livetest.py)
 - automate releases with bzr
     - automatic changelog generation
-- turn livetests into a nose based tested
+- turn livetests into a nose based testeLondond
     - make each test independent
 - clean up basic command handling to avoid repetition
 - might be able to metaprogram the way out of the currently clumsy UID handling situation
index 162e9b27ffd7dd01d70bb8a0fc05e8fd9bb5f0ab..f55e58db7869924fa02e28b6fe77f525932ff00e 100644 (file)
@@ -70,7 +70,7 @@ class IMAPClient(object):
 
     re_sep = re.compile('^\(\("[^"]*" "([^"]+)"\)\)')
     re_folder = re.compile('\([^)]*\) "[^"]+" "?([^"]+)"?')
-    re_status = re.compile(r'^\s*"(?P<folder>[^"]+)"\s+'
+    re_status = re.compile(r'^\s*"?(?P<folder>[^"]+)"?\s+'
                            r'\((?P<status_items>.*)\)$')
 
     def __init__(self, host, port=None, use_uid=True, ssl=False):
@@ -425,7 +425,7 @@ class IMAPClient(object):
             return {}
 
         msg_list = messages_to_str(messages)
-        parts_list = seq_to_parenlist([ p.upper() for p in parts ])
+        parts_list = seq_to_parenlist([p.upper() for p in parts])
 
         if self.use_uid:
             typ, data = self._imap.uid('FETCH', msg_list, parts_list)