diff options
| author | bwarsaw | 2001-10-01 16:51:57 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-01 16:51:57 +0000 |
| commit | 25318de660a2d6ca07c76252c12be52b35dc49c0 (patch) | |
| tree | 602ad5160373de77278cb0c0871e0c1836f21344 /Mailman/Queue/Switchboard.py | |
| parent | 5f472e3eb1dcbee035caa728044cec51149f9a63 (diff) | |
| download | mailman-25318de660a2d6ca07c76252c12be52b35dc49c0.tar.gz mailman-25318de660a2d6ca07c76252c12be52b35dc49c0.tar.zst mailman-25318de660a2d6ca07c76252c12be52b35dc49c0.zip | |
Diffstat (limited to 'Mailman/Queue/Switchboard.py')
| -rw-r--r-- | Mailman/Queue/Switchboard.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py index 9bdbf681c..f2a411d15 100644 --- a/Mailman/Queue/Switchboard.py +++ b/Mailman/Queue/Switchboard.py @@ -18,7 +18,7 @@ """ # enqueue() and dequeue() are not symmetric. enqueue() takes a Message -# object. dequeue() returns a mimelib.Message object tree. +# object. dequeue() returns a email.Message object tree. # # Message metadata is represented internally as a Python dictionary. Keys and # values must be strings. When written to a queue directory, the metadata is @@ -40,7 +40,7 @@ import marshal import errno import cPickle -from mimelib.Parser import Parser +import email from Mailman import mm_cfg from Mailman import Utils @@ -153,7 +153,7 @@ class _Switchboard: msgfp = None try: msgfp = open(msgfile) - msg = Parser(_class=Message.Message).parse(msgfp) + msg = email.message_from_file(msgfp, Message.Message) os.unlink(msgfile) except EnvironmentError, e: if e.errno <> errno.ENOENT: raise |
