|
@@ -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
|