]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug #698706: imaplib parsing INTERNALDATE backport
authorGeorg Brandl <georg@python.org>
Sat, 26 Nov 2005 16:32:36 +0000 (16:32 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 26 Nov 2005 16:32:36 +0000 (16:32 +0000)
Lib/imaplib.py

index f353015c935d9626e42f4833e50a2ecd27598f73..6b0576fe31785ee060d9caca59e44b7be1e4d852 100644 (file)
@@ -81,7 +81,7 @@ Commands = {
 Continuation = re.compile(r'\+( (?P<data>.*))?')
 Flags = re.compile(r'.*FLAGS \((?P<flags>[^\)]*)\)')
 InternalDate = re.compile(r'.*INTERNALDATE "'
-        r'(?P<day>[ 123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9])'
+        r'(?P<day>[ 0123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9])'
         r' (?P<hour>[0-9][0-9]):(?P<min>[0-9][0-9]):(?P<sec>[0-9][0-9])'
         r' (?P<zonen>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])'
         r'"')