From 9019ad37aba7b899fdc7d02084f8e898a94ec5b1 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Fri, 8 May 2020 13:51:52 +0200 Subject: [PATCH] rename original email attachment and change notification text --- pymodmilter/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymodmilter/__init__.py b/pymodmilter/__init__.py index fb4fac1..3fe5b69 100644 --- a/pymodmilter/__init__.py +++ b/pymodmilter/__init__.py @@ -297,14 +297,14 @@ class Modification: msg = MIMEPart() msg.add_header("MIME-Version", "1.0") msg.set_content( - "Please see the original email attached to this email.") + "Please see the original email attached.") msg.add_alternative( - "Please see the original email attached to this email.", + "Please see the original email attached.", subtype="html") fp.seek(0) msg.add_attachment( fp.read(), maintype="plain", subtype="text", - filename="original_email.eml") + filename=f"{qid}.eml") html_body = msg.get_body(preferencelist=("html")) text_body = msg.get_body(preferencelist=("plain")) # content and mime headers may have to be updated because