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