diff options
| author | bwarsaw | 2000-09-24 01:25:11 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-09-24 01:25:11 +0000 |
| commit | 0c0d627252635f6043bd784994ef7d3cbcf7cc46 (patch) | |
| tree | 5be67d7ff6447c88e711133fdc4e1b6f375717f8 /Mailman/Mailbox.py | |
| parent | 5346fb4f5eb9952d6fc1537ae814293412c79fdd (diff) | |
| download | mailman-0c0d627252635f6043bd784994ef7d3cbcf7cc46.tar.gz mailman-0c0d627252635f6043bd784994ef7d3cbcf7cc46.tar.zst mailman-0c0d627252635f6043bd784994ef7d3cbcf7cc46.zip | |
Diffstat (limited to 'Mailman/Mailbox.py')
| -rw-r--r-- | Mailman/Mailbox.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Mailbox.py b/Mailman/Mailbox.py index 8985347a1..4edad7e78 100644 --- a/Mailman/Mailbox.py +++ b/Mailman/Mailbox.py @@ -25,7 +25,10 @@ import mailbox class Mailbox(mailbox.UnixMailbox): - _regexp = re.compile(mailbox.UnixMailbox._fromlinepattern) + # a better regexp than the Python 1.5.2 default + _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*$' + _regexp = re.compile(_fromlinepattern) def _isrealfromline(self, line): return self._regexp.match(line) |
