Backported r9687 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9688 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-05-13 10:47:10 +00:00
parent 81c207b193
commit 5a1be1d8df
2 changed files with 3 additions and 1 deletions

View File

@ -395,7 +395,8 @@ class Mailer < ActionMailer::Base
'X-Redmine-Host' => Setting.host_name,
'X-Redmine-Site' => Setting.app_title,
'X-Auto-Response-Suppress' => 'OOF',
'Auto-Submitted' => 'auto-generated'
'Auto-Submitted' => 'auto-generated',
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
end
# Appends a Redmine header field (name is prepended with 'X-Redmine-')

View File

@ -166,6 +166,7 @@ class MailerTest < ActiveSupport::TestCase
assert_not_nil mail
assert_equal 'OOF', mail.header_string('X-Auto-Response-Suppress')
assert_equal 'auto-generated', mail.header_string('Auto-Submitted')
assert_equal '<redmine.example.net>', mail.header_string('List-Id')
end
def test_email_headers_should_include_sender