From 24548ff94544aae236653ebe870646b50591a672 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Wed, 18 Nov 2020 16:12:00 +0100 Subject: [PATCH] add reply email ascii check to sanity() --- cron.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cron.py b/cron.py index f6963ca4..9577f24d 100644 --- a/cron.py +++ b/cron.py @@ -388,6 +388,10 @@ def sanity_check(): if mailbox.email.lower().strip().replace(" ", "") != mailbox.email: LOG.exception("Mailbox %s address not sanitized", mailbox) + for contact in Contact.query.all(): + if not contact.reply_email.isascii(): + LOG.exception("Contact %s reply email is not ascii", contact) + LOG.d("Finish sanity check")