The _fromlinepattern was a little too restrictive -- some sendmails

don't put the seconds in the time!
This commit is contained in:
Guido van Rossum 1998-07-02 23:05:32 +00:00
parent b3bf2cd64b
commit 8ba4036a40

View file

@ -108,7 +108,7 @@ def _search_end(self):
# 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):