summaryrefslogtreecommitdiff
path: root/Mailman/Bouncers/Postfix.py
diff options
context:
space:
mode:
authorbwarsaw2000-06-08 03:44:38 +0000
committerbwarsaw2000-06-08 03:44:38 +0000
commitf992046261b4751dccbeb39fc4c869dca7281900 (patch)
treecfc977cb2ddf8bddefde280d32607536ee0252de /Mailman/Bouncers/Postfix.py
parent229cd77566b9c81a154bdbe35e2af5e75e702fba (diff)
downloadmailman-f992046261b4751dccbeb39fc4c869dca7281900.tar.gz
mailman-f992046261b4751dccbeb39fc4c869dca7281900.tar.zst
mailman-f992046261b4751dccbeb39fc4c869dca7281900.zip
Diffstat (limited to 'Mailman/Bouncers/Postfix.py')
-rw-r--r--Mailman/Bouncers/Postfix.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Bouncers/Postfix.py b/Mailman/Bouncers/Postfix.py
index 122ab30c7..61993d76a 100644
--- a/Mailman/Bouncers/Postfix.py
+++ b/Mailman/Bouncers/Postfix.py
@@ -43,7 +43,11 @@ def process(msg):
if not more:
# we didn't find it
return None
- s = StringIO(mfile.read())
+ try:
+ s = StringIO(mfile.read())
+ except multifile.Error:
+ # It is a mis-formated or incomplete message
+ return None
msg2 = mimetools.Message(s)
if msg2.gettype() == 'text/plain':
desc = msg2.get('content-description')