From 2daeb9501d0a026ea3932a59dd9e71d06d7008d9 Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 18 Dec 2019 18:07:20 +0200 Subject: [PATCH] remove email subject logging --- email_handler.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/email_handler.py b/email_handler.py index 46bd025f..6db4d424 100644 --- a/email_handler.py +++ b/email_handler.py @@ -169,18 +169,16 @@ class MailHandler: msg, "List-Unsubscribe-Post", "List-Unsubscribe=One-Click" ) - original_subject = msg["Subject"] + add_dkim_signature(msg, EMAIL_DOMAIN) + LOG.d( - "Forward mail from %s to %s, subject %s, mail_options %s, rcpt_options %s ", + "Forward mail from %s to %s, mail_options %s, rcpt_options %s ", website_email, user_email, - original_subject, envelope.mail_options, envelope.rcpt_options, ) - add_dkim_signature(msg, EMAIL_DOMAIN) - # smtp.send_message has UnicodeEncodeErroremail issue # encode message raw directly instead msg_raw = msg.as_string().encode() @@ -191,14 +189,6 @@ class MailHandler: envelope.mail_options, envelope.rcpt_options, ) - - # smtp.send_message( - # msg, - # from_addr=forward_email.reply_email, - # to_addrs=[user_email], # user personal email - # mail_options=envelope.mail_options, - # rcpt_options=envelope.rcpt_options, - # ) else: LOG.d("%s is disabled, do not forward", gen_email) forward_log.blocked = True