Remove the X-Sender during the reply phase

This commit is contained in:
Son NK 2020-04-01 20:33:27 +02:00
parent c8ba6e8013
commit 0517fcfd48
1 changed files with 1 additions and 0 deletions

View File

@ -621,6 +621,7 @@ def handle_reply(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, str
# remove sender header if present as this could reveal user real email
delete_header(msg, "Sender")
delete_header(msg, "X-Sender")
replace_header_when_reply(msg, alias, "To")
replace_header_when_reply(msg, alias, "Cc")