##// END OF EJS Templates
Backported r9687 from trunk....
Jean-Philippe Lang -
r9505:5a1be1d8df72
parent child
Show More
@@ -395,7 +395,8 class Mailer < ActionMailer::Base
395 'X-Redmine-Host' => Setting.host_name,
395 'X-Redmine-Host' => Setting.host_name,
396 'X-Redmine-Site' => Setting.app_title,
396 'X-Redmine-Site' => Setting.app_title,
397 'X-Auto-Response-Suppress' => 'OOF',
397 'X-Auto-Response-Suppress' => 'OOF',
398 'Auto-Submitted' => 'auto-generated'
398 'Auto-Submitted' => 'auto-generated',
399 'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
399 end
400 end
400
401
401 # Appends a Redmine header field (name is prepended with 'X-Redmine-')
402 # Appends a Redmine header field (name is prepended with 'X-Redmine-')
@@ -166,6 +166,7 class MailerTest < ActiveSupport::TestCase
166 assert_not_nil mail
166 assert_not_nil mail
167 assert_equal 'OOF', mail.header_string('X-Auto-Response-Suppress')
167 assert_equal 'OOF', mail.header_string('X-Auto-Response-Suppress')
168 assert_equal 'auto-generated', mail.header_string('Auto-Submitted')
168 assert_equal 'auto-generated', mail.header_string('Auto-Submitted')
169 assert_equal '<redmine.example.net>', mail.header_string('List-Id')
169 end
170 end
170
171
171 def test_email_headers_should_include_sender
172 def test_email_headers_should_include_sender
General Comments 0
You need to be logged in to leave comments. Login now