diff options
| author | bwarsaw | 2001-09-10 02:34:38 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-09-10 02:34:38 +0000 |
| commit | 6da965082a6792deb30a44e60918e3e107700d35 (patch) | |
| tree | dedeaefa81df44635165fbfad31cadd32b7def8a | |
| parent | 0c7c51646afebd5fa9d30b562e15d50669f5a884 (diff) | |
| download | mailman-6da965082a6792deb30a44e60918e3e107700d35.tar.gz mailman-6da965082a6792deb30a44e60918e3e107700d35.tar.zst mailman-6da965082a6792deb30a44e60918e3e107700d35.zip | |
process(): Watch out for when the bounce has no X-Mailer: header.
Reported by Luca Maranzano.
| -rw-r--r-- | Mailman/Bouncers/SMTP32.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Bouncers/SMTP32.py b/Mailman/Bouncers/SMTP32.py index bbd129325..cf1db6d68 100644 --- a/Mailman/Bouncers/SMTP32.py +++ b/Mailman/Bouncers/SMTP32.py @@ -44,7 +44,7 @@ acre = re.compile(r''' def process(msg): - mailer = msg['x-mailer'] + mailer = msg.get('x-mailer', '') if not mailer.startswith('<SMTP32 v'): return mi = MsgReader(msg) |
