diff options
| author | bwarsaw | 2002-07-12 04:30:25 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-07-12 04:30:25 +0000 |
| commit | 335a32650d1eeacb0ceef2159213b5a89ab27ce8 (patch) | |
| tree | 0f5f8009a2cdb02a553fbeecd2ad49c27f1c5120 | |
| parent | 657743f4c69f9ade111d759648d83bab26760834 (diff) | |
| download | mailman-335a32650d1eeacb0ceef2159213b5a89ab27ce8.tar.gz mailman-335a32650d1eeacb0ceef2159213b5a89ab27ce8.tar.zst mailman-335a32650d1eeacb0ceef2159213b5a89ab27ce8.zip | |
| -rw-r--r-- | Mailman/Mailbox.py | 11 |
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): |
