]> granicus.if.org Git - python/commitdiff
Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of...
authorPiers Lauder <piers@cs.su.oz.au>
Wed, 2 Mar 2005 09:13:45 +0000 (09:13 +0000)
committerPiers Lauder <piers@cs.su.oz.au>
Wed, 2 Mar 2005 09:13:45 +0000 (09:13 +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'"')