From 1d0aa0f90043753a9ddc407593e9409ff996df62 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sun, 1 Nov 2020 18:13:50 +0100 Subject: [PATCH] fix doc --- email_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_handler.py b/email_handler.py index ef30e138..2b50e32d 100644 --- a/email_handler.py +++ b/email_handler.py @@ -674,7 +674,7 @@ def forward_email_to_mailbox( add_or_replace_header(msg, _MESSAGE_ID, make_msgid(str(email_log.id), EMAIL_DOMAIN)) add_or_replace_header(msg, _ENVELOPE_FROM, envelope.mail_from) - # change the from header so the sender comes from @SL + # change the from header so the sender comes from a reverse-alias # so it can pass DMARC check # replace the email part in from: header contact_from_header = msg["From"] @@ -682,7 +682,7 @@ def forward_email_to_mailbox( add_or_replace_header(msg, "From", new_from_header) LOG.d("new_from_header:%s, old header %s", new_from_header, contact_from_header) - # replace CC & To emails by reply-email for all emails that are not alias + # replace CC & To emails by reverse-alias for all emails that are not alias replace_header_when_forward(msg, alias, "Cc") replace_header_when_forward(msg, alias, "To")