Hide seperator from 'from header' if no name present

This commit is contained in:
Sibren Vasse 2020-01-29 14:31:54 +01:00
parent 4eb19d9654
commit d7aae24ebb
No known key found for this signature in database
GPG key ID: A9E68B02F3D3E310

View file

@ -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}>"
)