diff options
Diffstat (limited to 'Mailman/Bouncers/Postfix.py')
| -rw-r--r-- | Mailman/Bouncers/Postfix.py | 6 |
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') |
