From 0056e3f0b2d5fe3de9124cf99f8c5db83e094dec Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Tue, 16 Mar 2010 09:41:21 +0100 Subject: [PATCH] Added ticket 414, references email header for the issue notifications. --- src/IDF/Issue.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/IDF/Issue.php b/src/IDF/Issue.php index 221f576..dc77e1a 100644 --- a/src/IDF/Issue.php +++ b/src/IDF/Issue.php @@ -246,7 +246,7 @@ class IDF_Issue extends Pluf_Model $langs[0]); } $current_locale = Pluf_Translation::getLocale(); - + $id = '<'.md5($this->id.md5(Pluf::f('secret_key'))).'@'.Pluf::f('mail_host', 'localhost').'>'; if ($create) { if (null != $this->get_owner() and $this->owner != $this->submitter) { $email_lang = array($this->get_owner()->email, @@ -271,6 +271,7 @@ class IDF_Issue extends Pluf_Model $this->id, $this->summary, $prj->shortname)); $tmpl = new Pluf_Template('idf/issues/issue-created-email.txt'); $email->addTextMessage($tmpl->render($context)); + $email->addHeaders(array('Message-ID'=>$id)); $email->sendMail(); } } else { @@ -316,6 +317,7 @@ class IDF_Issue extends Pluf_Model $this->id, $this->summary, $prj->shortname)); $tmpl = new Pluf_Template('idf/issues/issue-updated-email.txt'); $email->addTextMessage($tmpl->render($context)); + $email->addHeaders(array('References'=>$id)); $email->sendMail(); } }