From d18bb28ca9232dd013663f15975146889f830b5e Mon Sep 17 00:00:00 2001 From: Son Date: Fri, 15 Oct 2021 10:37:22 +0200 Subject: [PATCH] add more log to investigate "Cannot parse Postfix queue ID" error --- email_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/email_handler.py b/email_handler.py index cef58976..a84569c2 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1744,7 +1744,11 @@ def handle(envelope: Envelope) -> str: if postfix_queue_id: set_message_id(postfix_queue_id) else: - LOG.d("Cannot parse Postfix queue ID from %s", msg[headers.RECEIVED]) + LOG.d( + "Cannot parse Postfix queue ID from %s %s", + msg.get_all(headers.RECEIVED), + msg[headers.RECEIVED], + ) if should_ignore(mail_from, rcpt_tos): LOG.w("Ignore email mail_from=%s rcpt_to=%s", mail_from, rcpt_tos)