Index: core/email_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/email_api.php,v retrieving revision 1.127 diff -u -r1.127 email_api.php --- core/email_api.php 6 Mar 2007 05:51:22 -0000 1.127 +++ core/email_api.php 22 Mar 2007 17:15:44 -0000 @@ -843,6 +843,9 @@ $t_subject = email_build_subject( $p_bug_id ); $t_date = date( config_get( 'normal_date_format' ) ); + # @@@ Iwao AVE! : Create custom headers for reminder email. + $t_custom_header_list = array( 'X-Mantis-Site' => config_get( 'path' ), 'X-Mantis-Action' => 'reminder', 'X-Mantis-Project' => $t_project_id, 'X-Mantis-Bugid' => $p_bug_id ); + $result = array(); foreach ( $p_recipients as $t_recipient ) { lang_push( user_pref_get_language( $t_recipient, $t_project_id ) ); @@ -862,7 +865,7 @@ " \n\n$p_message"; if( ON == config_get( 'enable_email_notification' ) ) { - email_store( $t_email, $t_subject, $t_contents ); + email_store( $t_email, $t_subject, $t_contents, $t_custom_header_list ); } lang_pop(); @@ -907,9 +910,12 @@ $t_message .= email_format_bug_message( $p_visible_bug_data ); + # @@@ Iwao AVE! : Create custom headers for bug info email. + $t_custom_header_list = array( 'keywords' => $p_visible_bug_data['set_category'], 'X-Mantis-Site' => config_get( 'path' ), 'X-Mantis-Action' => 'info', 'X-Mantis-Project' => $p_project_id, 'X-Mantis-Bugid' => $p_visible_bug_data['email_bug'] ); + # send mail # PRINT '
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_custom_header_list ); return $t_ok; }