From 8ba4036a40ca06c9e91e0ca2056e157e3594388b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 2 Jul 1998 23:05:32 +0000 Subject: [PATCH] The _fromlinepattern was a little too restrictive -- some sendmails don't put the seconds in the time! --- Lib/mailbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 0ea4a5811d7..9cf3e076211 100755 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -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):