mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 15:23:27 +08:00
do NOT modify "to" header as it's not displayed in mail client anyway
This commit is contained in:
parent
2ec89afac2
commit
fbf4a97a3e
1 changed files with 0 additions and 5 deletions
|
@ -140,11 +140,6 @@ class MailHandler:
|
|||
msg.replace_header("From", from_header)
|
||||
LOG.d("new from header:%s", from_header)
|
||||
|
||||
# change the to: header so target is user email
|
||||
to_header = alias.replace("@", " at ") + f" <{user_email}>"
|
||||
msg.replace_header("To", to_header)
|
||||
LOG.d("new to header: %s", to_header)
|
||||
|
||||
# add List-Unsubscribe header
|
||||
unsubscribe_link = f"{URL}/dashboard/unsubscribe/{gen_email.id}"
|
||||
add_or_replace_header(msg, "List-Unsubscribe", f"<{unsubscribe_link}>")
|
||||
|
|
Loading…
Reference in a new issue