improve message serialization and make cli.py PEP8 comform

This commit is contained in:
2021-10-06 20:58:04 +02:00
parent 1aa8917107
commit af8eb8c141
4 changed files with 68 additions and 50 deletions

View File

@@ -204,7 +204,7 @@ def _inject_body(milter):
def _wrap_message(milter):
attachment = MIMEPart(policy=SMTPUTF8)
attachment.set_content(milter.msg.as_bytes(),
attachment.set_content(milter.msg_as_bytes(),
maintype="plain", subtype="text",
disposition="attachment",
filename=f"{milter.qid}.eml",