diff options
| author | bwarsaw | 2000-06-08 03:44:38 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-06-08 03:44:38 +0000 |
| commit | f992046261b4751dccbeb39fc4c869dca7281900 (patch) | |
| tree | cfc977cb2ddf8bddefde280d32607536ee0252de /Mailman/Bouncers/Postfix.py | |
| parent | 229cd77566b9c81a154bdbe35e2af5e75e702fba (diff) | |
| download | mailman-f992046261b4751dccbeb39fc4c869dca7281900.tar.gz mailman-f992046261b4751dccbeb39fc4c869dca7281900.tar.zst mailman-f992046261b4751dccbeb39fc4c869dca7281900.zip | |
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') |
