From 603e98d0bf792821699f97b4e89a5276920513d9 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 1 Nov 2021 17:58:39 +0100 Subject: [PATCH] remove unnecessary check --- email_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/email_handler.py b/email_handler.py index 53cd2948..4c2af2c9 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1050,9 +1050,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str): email_log.sl_message_id = sl_message_id # sanity check to make sure the message id hasn't been added before - if not MessageIDMatching.get_by( - sl_message_id=sl_message_id - ) and not MessageIDMatching.get_by(original_message_id=original_message_id): + if not MessageIDMatching.get_by(original_message_id=original_message_id): # original_message_id might be None if original_message_id: MessageIDMatching.create(