From e7c473c943ec954ef6b2397abbe14114f2a59994 Mon Sep 17 00:00:00 2001 From: Son Date: Thu, 6 Jan 2022 14:35:16 +0100 Subject: [PATCH] add more logging info --- email_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/email_handler.py b/email_handler.py index 66c495d1..7d453c7e 100644 --- a/email_handler.py +++ b/email_handler.py @@ -2149,6 +2149,7 @@ def handle(envelope: Envelope) -> str: LOG.w("No such email log") return status.E512 + # bounce by contact if is_bounce(envelope, msg): return handle_bounce(envelope, email_log, msg) elif is_automatic_out_of_office(msg): @@ -2177,7 +2178,10 @@ def handle(envelope: Envelope) -> str: else: LOG.e( - "cannot handle email sent to reply VERP, saved at %s", + "cannot handle email sent to reply VERP, %s -> %s (%s) saved at %s", + email_log.alias, + email_log.contact, + email_log, save_email_for_debugging(msg), ) return status.E410