remove unnecessary check

This commit is contained in:
Son 2021-11-01 17:58:39 +01:00
parent db226c5706
commit 603e98d0bf
1 changed files with 1 additions and 3 deletions

View File

@ -1050,9 +1050,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str):
email_log.sl_message_id = sl_message_id email_log.sl_message_id = sl_message_id
# sanity check to make sure the message id hasn't been added before # sanity check to make sure the message id hasn't been added before
if not MessageIDMatching.get_by( if not MessageIDMatching.get_by(original_message_id=original_message_id):
sl_message_id=sl_message_id
) and not MessageIDMatching.get_by(original_message_id=original_message_id):
# original_message_id might be None # original_message_id might be None
if original_message_id: if original_message_id:
MessageIDMatching.create( MessageIDMatching.create(