From: Georg Brandl Date: Sat, 26 Nov 2005 16:32:36 +0000 (+0000) Subject: Bug #698706: imaplib parsing INTERNALDATE backport X-Git-Tag: v2.4.3c1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae70eb7c36b8a5e4f58bc7b0100e6b15710390a0;p=thirdparty%2FPython%2Fcpython.git Bug #698706: imaplib parsing INTERNALDATE backport --- diff --git a/Lib/imaplib.py b/Lib/imaplib.py index f353015c935d..6b0576fe3178 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -81,7 +81,7 @@ Commands = { Continuation = re.compile(r'\+( (?P.*))?') Flags = re.compile(r'.*FLAGS \((?P[^\)]*)\)') InternalDate = re.compile(r'.*INTERNALDATE "' - r'(?P[ 123][0-9])-(?P[A-Z][a-z][a-z])-(?P[0-9][0-9][0-9][0-9])' + r'(?P[ 0123][0-9])-(?P[A-Z][a-z][a-z])-(?P[0-9][0-9][0-9][0-9])' r' (?P[0-9][0-9]):(?P[0-9][0-9]):(?P[0-9][0-9])' r' (?P[-+])(?P[0-9][0-9])(?P[0-9][0-9])' r'"')