diff -r 8f85262fbe8a Lib/imaplib.py --- a/Lib/imaplib.py Sun Jul 06 02:24:24 2014 -0400 +++ b/Lib/imaplib.py Tue Jul 15 18:09:35 2014 -0700 @@ -108,7 +108,7 @@ br'"') Literal = re.compile(br'.*{(?P\d+)}$', re.ASCII) MapCRLF = re.compile(br'\r\n|\r|\n') -Response_code = re.compile(br'\[(?P[A-Z-]+)( (?P[^\]]*))?\]') +Response_code = re.compile(br'\[(?P[A-Z-]+)( (?P.*))?\]') Untagged_response = re.compile(br'\* (?P[A-Z-]+)( (?P.*))?') Untagged_status = re.compile( br'\* (?P\d+) (?P[A-Z-]+)( (?P.*))?', re.ASCII)