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/OutgoingRunner.py | |
| parent | 5f472e3eb1dcbee035caa728044cec51149f9a63 (diff) | |
| download | mailman-25318de660a2d6ca07c76252c12be52b35dc49c0.tar.gz mailman-25318de660a2d6ca07c76252c12be52b35dc49c0.tar.zst mailman-25318de660a2d6ca07c76252c12be52b35dc49c0.zip | |
Diffstat (limited to 'Mailman/Queue/OutgoingRunner.py')
| -rw-r--r-- | Mailman/Queue/OutgoingRunner.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Mailman/Queue/OutgoingRunner.py b/Mailman/Queue/OutgoingRunner.py index 3ccf3675c..bbf0eca37 100644 --- a/Mailman/Queue/OutgoingRunner.py +++ b/Mailman/Queue/OutgoingRunner.py @@ -20,7 +20,7 @@ import sys import os import time -from mimelib.Parser import Parser +import email from Mailman import mm_cfg from Mailman import Message @@ -67,8 +67,7 @@ class OutgoingRunner(Runner): # HandleBouncingAddress(). I'm not sure this is necessary, or the # right thing to do. pcnt = len(e.permfailures) - p = Parser(Message.Message) - copy = p.parsestr(str(msg)) + copy = email.message_from_string(str(msg)) self._permfailures.setdefault(mlist, []).extend( zip(e.permfailures, [copy] * pcnt)) # Temporary failures |
