From a255c2652ee35a0968cc46e796f3fabbfe7edf4e Mon Sep 17 00:00:00 2001
From: Son NK <>
Date: Tue, 9 Jun 2020 18:58:42 +0200
Subject: [PATCH] fix the email
---
cron.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/cron.py b/cron.py
index 027b07ea..d8d917ae 100644
--- a/cron.py
+++ b/cron.py
@@ -292,8 +292,7 @@ def sanity_check():
email_msg = f"""Hi,
Your mailbox {mailbox.email} cannot receive emails.
-To avoid forwarding emails to an invalid mailbox, we have disabled this mailbox
- along with all of its aliases.
+To avoid forwarding emails to an invalid mailbox, we have disabled this mailbox along with all of its aliases.
If this is a mistake, please reply to this email.
@@ -303,7 +302,10 @@ SimpleLogin team.
try:
send_email(
- mailbox.user.email, email_msg, email_msg.replace("\n", "
")
+ mailbox.user.email,
+ f"{mailbox.email} is disabled",
+ email_msg,
+ email_msg.replace("\n", "
"),
)
except Exception:
LOG.error("Cannot send disable mailbox email to %s", mailbox.user)