From 2a1ef7beecfcf540d318754075dcd7029c6aea36 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 11 Jan 2022 13:14:47 +0100 Subject: [PATCH] notify user every time a reply can't be sent --- email_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/email_handler.py b/email_handler.py index a1e6b18a..4fae82f6 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1098,9 +1098,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str): # the email is ignored, delete the email log EmailLog.delete(email_log.id, commit=True) - send_email_at_most_times( - user, - ALERT_NON_REVERSE_ALIAS_REPLY_PHASE, + send_email( mailbox.email, f"Email sent to {contact.email} contains non reverse-alias addresses", render(