Restored List-Id header in email notifications (#10888).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9687 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-05-13 10:44:41 +00:00
parent 4f0aa2432c
commit 23a06ec022
2 changed files with 3 additions and 1 deletions

View File

@ -374,7 +374,8 @@ class Mailer < ActionMailer::Base
'X-Redmine-Site' => Setting.app_title,
'X-Auto-Response-Suppress' => 'OOF',
'Auto-Submitted' => 'auto-generated',
'From' => Setting.mail_from
'From' => Setting.mail_from,
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
# Removes the author from the recipients and cc
# if he doesn't want to receive notifications about what he does

View File

@ -163,6 +163,7 @@ class MailerTest < ActiveSupport::TestCase
assert_not_nil mail
assert_equal 'OOF', mail.header['X-Auto-Response-Suppress'].to_s
assert_equal 'auto-generated', mail.header['Auto-Submitted'].to_s
assert_equal '<redmine.example.net>', mail.header['List-Id'].to_s
end
def test_email_headers_should_include_sender