delete Reply-To header in reply phase

This commit is contained in:
Son NK 2020-01-07 19:50:24 +01:00
parent ba46d8f7e0
commit f1befd7024
1 changed files with 2 additions and 2 deletions

View File

@ -250,8 +250,8 @@ class MailHandler:
msg.replace_header("From", alias)
# some email providers like ProtonMail adds automatically the Reply-To field
# make sure to replace it too
add_or_replace_header(msg, "Reply-To", alias)
# make sure to delete it
delete_header(msg, "Reply-To")
msg.replace_header("To", forward_email.website_email)