mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
Hide seperator from 'from header' if no name present
This commit is contained in:
parent
4eb19d9654
commit
d7aae24ebb
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class MailHandler:
|
||||||
# replace the email part in from: header
|
# replace the email part in from: header
|
||||||
from_header = (
|
from_header = (
|
||||||
get_email_name(msg["From"])
|
get_email_name(msg["From"])
|
||||||
+ " - "
|
+ ("" if get_email_name(msg["From"]) == "" else " - ")
|
||||||
+ website_email.replace("@", " at ")
|
+ website_email.replace("@", " at ")
|
||||||
+ f" <{forward_email.reply_email}>"
|
+ f" <{forward_email.reply_email}>"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue