mirror of https://github.com/python/cpython.git
The _fromlinepattern was a little too restrictive -- some sendmails
don't put the seconds in the time!
This commit is contained in:
parent
b3bf2cd64b
commit
8ba4036a40
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue