commit | 8ba4036a40ca06c9e91e0ca2056e157e3594388b | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Jul 02 23:05:32 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Jul 02 23:05:32 1998 +0000 |
tree | 7c81bfc976c5c92a176e31752cc3d231772e2edb | |
parent | b3bf2cd64b12dc0f858a70eda2f42e9670f695bb [diff] |
The _fromlinepattern was a little too restrictive -- some sendmails don't put the seconds in the time!
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 0ea4a58..9cf3e07 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py
@@ -108,7 +108,7 @@ # 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):