From 62e028c30fd405742187389d4275fd1abef7667d Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 31 Mar 2020 22:19:15 +0200 Subject: [PATCH] Remove the workaround --- email_handler.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/email_handler.py b/email_handler.py index 0a903bfa..2ff502b8 100644 --- a/email_handler.py +++ b/email_handler.py @@ -421,11 +421,10 @@ def handle_forward(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, s # Sometimes when user clicks on "reply all" # an email is sent to the same alias that the previous message is destined to - # todo: uncomment this - # if envelope.mail_from == mailbox_email: - # # nothing to do - # LOG.d("Forward from %s to %s, nothing to do", envelope.mail_from, mailbox_email) - # return False, "550 SL ignored" + if envelope.mail_from == mailbox_email: + # nothing to do + LOG.d("Forward from %s to %s, nothing to do", envelope.mail_from, mailbox_email) + return False, "550 SL ignored" contact = get_or_create_contact(msg["From"], alias)