summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-07-12 04:30:25 +0000
committerbwarsaw2002-07-12 04:30:25 +0000
commit335a32650d1eeacb0ceef2159213b5a89ab27ce8 (patch)
tree0f5f8009a2cdb02a553fbeecd2ad49c27f1c5120
parent657743f4c69f9ade111d759648d83bab26760834 (diff)
downloadmailman-335a32650d1eeacb0ceef2159213b5a89ab27ce8.tar.gz
mailman-335a32650d1eeacb0ceef2159213b5a89ab27ce8.tar.zst
mailman-335a32650d1eeacb0ceef2159213b5a89ab27ce8.zip
-rw-r--r--Mailman/Mailbox.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/Mailman/Mailbox.py b/Mailman/Mailbox.py
index 24fc9be52..8eff3d5fa 100644
--- a/Mailman/Mailbox.py
+++ b/Mailman/Mailbox.py
@@ -28,18 +28,9 @@ from Mailman.Message import Message
-# Factory callable for UnixMailboxes. This ensures that any object we get out
-# of the mailbox is an instance of our subclass. (requires Python 2.1's
-# mailbox module)
-def _factory(fp):
- p = Parser(Message)
- return p.parse(fp)
-
-
-
class Mailbox(mailbox.PortableUnixMailbox):
def __init__(self, fp):
- mailbox.PortableUnixMailbox.__init__(self, fp, _factory)
+ mailbox.PortableUnixMailbox.__init__(self, fp, email.message_from_file)
# msg should be an rfc822 message or a subclass.
def AppendMessage(self, msg):