From c6138828c260684fbbb2d15af9cf268c1643e1fb Mon Sep 17 00:00:00 2001 From: Son NK Date: Thu, 19 Mar 2020 11:33:21 +0100 Subject: [PATCH] fix to_header --- email_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_handler.py b/email_handler.py index 57bda02a..822f6fc9 100644 --- a/email_handler.py +++ b/email_handler.py @@ -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)