From 88700f21c15318cab3441c770e9c353fb755a09e Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 17 Mar 2014 17:38:14 -0500
Subject: [PATCH] oops: Add data-mid token to activity notice

---
 include/class.ticket.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/class.ticket.php b/include/class.ticket.php
index 9750fb41a..bd05210c3 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1024,7 +1024,8 @@ class Ticket {
         $msg = $this->replaceVars($msg->asArray(), $vars);
 
         $attachments = $cfg->emailAttachments()?$entry->getAttachments():array();
-        $options = array('inreplyto' => $entry->getEmailMessageId());
+        $options = array('inreplyto' => $entry->getEmailMessageId(),
+                         'thread' => $entry);
         foreach ($recipients as $recipient) {
             if ($uid == $recipient->getId()) continue;
             $options['references'] =  $entry->getEmailReferencesForUser($recipient);
-- 
GitLab