]> granicus.if.org Git - python/commitdiff
The _fromlinepattern was a little too restrictive -- some sendmails
authorGuido van Rossum <guido@python.org>
Thu, 2 Jul 1998 23:05:32 +0000 (23:05 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 2 Jul 1998 23:05:32 +0000 (23:05 +0000)
don't put the seconds in the time!

Lib/mailbox.py

index 0ea4a5811d74b06a517c7450ecf59baf5596c848..9cf3e076211654b4950108a5880bbd444c242812 100755 (executable)
@@ -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):