From 7cd797097d6f8a591b03de5c2033b1d3a87f2e4d Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 6 Dec 2023 03:58:24 +0100 Subject: [PATCH] stash --- core/mail/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mail/protocol.py b/core/mail/protocol.py index cb4cf0a..d7dbaf9 100644 --- a/core/mail/protocol.py +++ b/core/mail/protocol.py @@ -131,6 +131,8 @@ class LMTPHandler: ) log.info(f"Sent message to frontend") + references = await sync_to_async(collect_references)(active_issue_thread) + reply_email = await sync_to_async(Email.objects.create)(sender=recipient, # "noreply@" + MAIL_DOMAIN, recipient=sender, body="Thank you for your message.", @@ -138,8 +140,6 @@ class LMTPHandler: in_reply_to=header_message_id, event=target_event, issue_thread=active_issue_thread) - - references = await sync_to_async(collect_references)(active_issue_thread) await send_smtp(make_reply(reply_email, references), log) log.info("Sent reply")