summaryrefslogtreecommitdiff
path: root/Mailman/Mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Mailbox.py')
-rw-r--r--Mailman/Mailbox.py6
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