summaryrefslogtreecommitdiff
path: root/Mailman/Bouncers/Compuserve.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Bouncers/Compuserve.py')
-rw-r--r--Mailman/Bouncers/Compuserve.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Bouncers/Compuserve.py b/Mailman/Bouncers/Compuserve.py
index 5ef77f2b3..b2f074725 100644
--- a/Mailman/Bouncers/Compuserve.py
+++ b/Mailman/Bouncers/Compuserve.py
@@ -17,7 +17,7 @@
"""Compuserve has its own weird format for bounces."""
import re
-from mimelib import MsgReader
+import email
dcre = re.compile(r'your message could not be delivered', re.IGNORECASE)
acre = re.compile(r'Invalid receiver address: (?P<addr>.*)')
@@ -25,7 +25,7 @@ acre = re.compile(r'Invalid receiver address: (?P<addr>.*)')
def process(msg):
- mi = MsgReader.MsgReader(msg)
+ mi = email.Iterators.body_line_iterator(msg)
# simple state machine
# 0 = nothing seen yet
# 1 = intro line seen