logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

mantisbt/core email_api.php,1.139.2.1,1.139.2.2: msg#00077

Subject: mantisbt/core email_api.php,1.139.2.1,1.139.2.2
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18916/core

Modified Files:
      Tag: BRANCH_1_1_0
        email_api.php 
Log Message:
Fix 7787: Robust threading of e-mails using MIME headers


Index: email_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/email_api.php,v
retrieving revision 1.139.2.1
retrieving revision 1.139.2.2
diff -u -d -r1.139.2.1 -r1.139.2.2
--- email_api.php       13 Oct 2007 22:35:24 -0000      1.139.2.1
+++ email_api.php       21 Oct 2007 22:30:39 -0000      1.139.2.2
@@ -929,9 +929,19 @@
 
                $t_message .= email_format_bug_message(  $p_visible_bug_data );
 
+               # build headers
+               $t_bug_id = $p_visible_bug_data['email_bug'];
+               $t_message_md5 = md5( $t_bug_id . 
$p_visible_bug_data['email_date_submitted'] );
+               $t_mail_headers = array( 'keywords' => 
$p_visible_bug_data['set_category'] );
+               if ( $p_message_id == 
'email_notification_title_for_action_bug_submitted' ) {
+                       $t_mail_headers[] = array('Message-ID' => 
"<{$t_message_md5}>" );
+               } else {
+                       $t_mail_headers[] = array('In-Reply-To' => 
"<{$t_message_md5}>" );
+               }
+
                # send mail
                # PRINT '<br />email_bug_info::Sending email to 
:'.$t_user_email;
-               $t_ok = email_store( $t_user_email, $t_subject, $t_message, 
array( 'keywords' => $p_visible_bug_data['set_category'] ) );
+               $t_ok = email_store( $t_user_email, $t_subject, $t_message, 
$t_mail_headers );
 
                return $t_ok;
        }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


<Prev in Thread] Current Thread [Next in Thread>