Commit 8ba4036a authored by Guido van Rossum's avatar Guido van Rossum

The _fromlinepattern was a little too restrictive -- some sendmails

don't put the seconds in the time!
parent b3bf2cd6
......@@ -108,7 +108,7 @@ class UnixMailbox(_Mailbox):
# the 5 characters "From ".
_fromlinepattern = r"From \s*[^\s]+\s+\w\w\w\s+\w\w\w\s+\d?\d\s+" \
r"\d?\d:\d\d:\d\d(\s+[^\s]+)?\s+\d\d\d\d\s*$"
r"\d?\d:\d\d(:\d\d)?(\s+[^\s]+)?\s+\d\d\d\d\s*$"
_regexp = None
def _isrealfromline(self, line):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment