We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 998098c commit 70ae9e3Copy full SHA for 70ae9e3
Lib/mailbox.py
@@ -898,7 +898,7 @@ class mbox(_mboxMMDF):
898
# This is the full syntax, i.e. From sender asctime[ moreinfo]
899
DAY_RE = b' (?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)'
900
MON_RE = b' (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)'
901
- DTY_RE = b' [ 0]\\d \\d\\d:\\d\\d:\\d\\d \\d{4}' # day, time, year
+ DTY_RE = b' [ 123]\\d \\d\\d:\\d\\d:\\d\\d \\d{4}' # day, time, year
902
FULL_RE = b'From \\S+' + DAY_RE + MON_RE + DTY_RE + b'( .+)?' + linesep + b'\\Z'
903
# we capture the optional moreinfo group so we can check for lines that end in the date
904
0 commit comments