From c19ef0991b0c9930bf02bc3d974ba180cfa39bf1 Mon Sep 17 00:00:00 2001 From: jedi Date: Mon, 18 Nov 2024 02:02:51 +0100 Subject: [PATCH] stash --- core/mail/protocol.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/mail/protocol.py b/core/mail/protocol.py index c5aaa4a..cc192a8 100644 --- a/core/mail/protocol.py +++ b/core/mail/protocol.py @@ -200,7 +200,10 @@ def receive_email(envelope, log=None): subject = "No subject" subject = unescape_and_decode_quoted_printable(subject) subject = unescape_and_decode_base64(subject) + log.info("search for {}".format(recipient)) + log.info("known {}".format(["{} -> {}".format(x.address, x.event.slug) for x in EventAddress.objects.all()])) target_event = find_target_event(recipient) + log.info("found {}".format(target_event)) active_issue_thread, new = find_active_issue_thread(header_in_reply_to, recipient, subject, target_event) @@ -258,6 +261,7 @@ class LMTPHandler: log.setLevel(logging.DEBUG) log.info('Message from %s' % envelope.mail_from) log.info('Message for %s' % envelope.rcpt_tos) + log.info('CTX for {}, {}'.format(server, session)) log.info('Message data:\n') content = None