Skip to content
Commit 37b3f62a authored by Mark Sapiro's avatar Mark Sapiro
Browse files

Defend against certain malformed messages.

Accommodate https://bugs.python.org/issue27321 by overriding as_string() in
mailman.email.message.Message to catch the KeyError, get the message
as_bytes() and convert it to a string.  This obviates !197 as a fix for #256
so that is reverted.

Also fix mailman.mta.connection.Connection.sendmail to ensure msgtext is
pure ascii.
parent 1c50b573
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment