diff --git a/email_handler.py b/email_handler.py index 22a16a4d..38aa972e 100644 --- a/email_handler.py +++ b/email_handler.py @@ -251,8 +251,13 @@ class MailHandler: LOG.d("Remove DKIM-Signature %s", msg["DKIM-Signature"]) del msg["DKIM-Signature"] - # email seems to come from alias + # the email comes from alias 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) + msg.replace_header("To", forward_email.website_email) # add List-Unsubscribe header