From d7aae24ebb542aede5ff43a70f5a37c1aef1746e Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Wed, 29 Jan 2020 14:31:54 +0100 Subject: [PATCH] Hide seperator from 'from header' if no name present --- email_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email_handler.py b/email_handler.py index 7876476c..c93b2f49 100644 --- a/email_handler.py +++ b/email_handler.py @@ -235,7 +235,7 @@ class MailHandler: # replace the email part in from: header from_header = ( get_email_name(msg["From"]) - + " - " + + ("" if get_email_name(msg["From"]) == "" else " - ") + website_email.replace("@", " at ") + f" <{forward_email.reply_email}>" )