mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
fix to_header
This commit is contained in:
parent
ca4f02426c
commit
c6138828c2
@ -342,9 +342,9 @@ def handle_forward(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> str:
|
||||
if should_append_alias(msg, alias.email):
|
||||
LOG.d("append alias %s to TO header %s", alias, msg["To"])
|
||||
if msg["To"]:
|
||||
to_header = msg["To"] + "," + alias
|
||||
to_header = msg["To"] + "," + alias.email
|
||||
else:
|
||||
to_header = alias
|
||||
to_header = alias.email
|
||||
|
||||
add_or_replace_header(msg, "To", to_header)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user