diff options
| author | bwarsaw | 2000-09-24 00:23:26 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-09-24 00:23:26 +0000 |
| commit | 607f2423a56643d1d70b915f4baf3cebad9561f2 (patch) | |
| tree | c950e5489fda85e51ad80c4f038674baf54f67cf /Mailman/Mailbox.py | |
| parent | 373b8c79bed3e9f25c51a9fceb0e87b80049d347 (diff) | |
| download | mailman-607f2423a56643d1d70b915f4baf3cebad9561f2.tar.gz mailman-607f2423a56643d1d70b915f4baf3cebad9561f2.tar.zst mailman-607f2423a56643d1d70b915f4baf3cebad9561f2.zip | |
Diffstat (limited to 'Mailman/Mailbox.py')
| -rw-r--r-- | Mailman/Mailbox.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Mailbox.py b/Mailman/Mailbox.py index e12749097..8985347a1 100644 --- a/Mailman/Mailbox.py +++ b/Mailman/Mailbox.py @@ -18,12 +18,18 @@ "Extend mailbox.UnixMailbox." import string +import re import errno import mailbox class Mailbox(mailbox.UnixMailbox): + _regexp = re.compile(mailbox.UnixMailbox._fromlinepattern) + + def _isrealfromline(self, line): + return self._regexp.match(line) + # msg should be an rfc822 message or a subclass. def AppendMessage(self, msg): # Check the last character of the file and write a newline if it isn't |
