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:
parent
4f0aa2432c
commit
23a06ec022
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue