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
1 changed files with 1 additions and 1 deletions

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