From: Menno Smits Date: Tue, 21 Apr 2009 19:43:51 +0000 (+0100) Subject: fixed a bug for when the status command response doesnt put quotes around the folder... X-Git-Tag: 0.7~88 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=33b2586003c7cd083c53773d598d90a8fa812b64;p=imapclient.git fixed a bug for when the status command response doesnt put quotes around the folder name --- diff --git a/TODO b/TODO index dad7672..38fb8fc 100644 --- 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 @@ -22,9 +19,10 @@ ---- 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 diff --git a/imapclient/imapclient.py b/imapclient/imapclient.py index 162e9b2..f55e58d 100644 --- a/imapclient/imapclient.py +++ b/imapclient/imapclient.py @@ -70,7 +70,7 @@ class IMAPClient(object): re_sep = re.compile('^\(\("[^"]*" "([^"]+)"\)\)') re_folder = re.compile('\([^)]*\) "[^"]+" "?([^"]+)"?') - re_status = re.compile(r'^\s*"(?P[^"]+)"\s+' + re_status = re.compile(r'^\s*"?(?P[^"]+)"?\s+' r'\((?P.*)\)$') 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)