From bae556f521cacbfbaca1ffd7a5d1d57c1173ccb7 Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 22 Jan 2020 23:21:36 +0100 Subject: [PATCH] log msg["From"] for the failed reply from alias --- email_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/email_handler.py b/email_handler.py index 91d1718c..e10331e0 100644 --- a/email_handler.py +++ b/email_handler.py @@ -295,8 +295,9 @@ class MailHandler: user_email = forward_email.gen_email.user.email if envelope.mail_from.lower() != user_email.lower(): LOG.error( - f"Reply email can only be used by user email. Actual mail_from: %s. User email %s. reply_email %s", + f"Reply email can only be used by user email. Actual mail_from: %s. msg from header: %s, User email %s. reply_email %s", envelope.mail_from, + msg["From"], user_email, reply_email, )