From 25af4b422a73604aa05b188797557e664189cc25 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Tue, 29 Oct 2019 15:45:55 +0100 Subject: [PATCH] Fix double angle brackets in From header --- pyquarantine/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyquarantine/notifications.py b/pyquarantine/notifications.py index cbe1eb4..abf4fa3 100644 --- a/pyquarantine/notifications.py +++ b/pyquarantine/notifications.py @@ -392,7 +392,7 @@ class EMailNotification(BaseNotification): msg = MIMEMultipart('related') msg["Subject"] = self.subject.format_map(variables) - msg["From"] = "<{}>".format(self.from_header.format_map(variables)) + msg["From"] = "{}".format(self.from_header.format_map(variables)) msg["To"] = "<{}>".format(recipient) msg["Date"] = email.utils.formatdate() msg.attach(MIMEText(htmltext, "html", 'UTF-8'))