Merge pull request #32651 from RitvikSardana/email-threading-fw

fix: find message id from in_reply_to field in communication
This commit is contained in:
RitvikSardana 2025-05-23 13:27:52 +05:30 committed by GitHub
commit 2f3295d685
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -731,7 +731,8 @@ class QueueBuilder:
if self.read_receipt:
mail.msg_root["Disposition-Notification-To"] = self.sender
if self.in_reply_to:
mail.set_in_reply_to(self.in_reply_to)
if message_id := frappe.db.get_value("Communication", self.in_reply_to, "message_id"):
mail.set_in_reply_to(get_string_between("<", message_id, ">"))
return mail
def process(self, send_now=False) -> EmailQueue | None: