Skip to content
Snippets Groups Projects
Commit f9e400a7 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1947 from greezybacon/issue/1346


mailer: Try harder to find References header

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents dfddf1d5 5a42156b
No related branches found
No related tags found
No related merge requests found
......@@ -304,11 +304,13 @@ class Mailer {
if (isset($options['thread'])
&& $options['thread'] instanceof ThreadEntry
) {
$headers += array('References' => $options['thread']->getEmailReferences());
if ($irt = $options['thread']->getEmailMessageId()) {
// This is an response from an email, like and autoresponse.
// Web posts will not have a email message-id
$headers += array('In-Reply-To' => $irt);
$headers += array(
'In-Reply-To' => $irt,
'References' => $options['thread']->getEmailReferences()
);
}
elseif ($parent = $options['thread']->getParent()) {
// Use the parent item as the email information source. This
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment