Replaced non standard Precedence email header with "X-Auto-Response-Suppress: OOF" (#9534).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7805 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b170a40ed4
commit
f953426935
|
@ -378,7 +378,7 @@ class Mailer < ActionMailer::Base
|
||||||
headers 'X-Mailer' => 'Redmine',
|
headers 'X-Mailer' => 'Redmine',
|
||||||
'X-Redmine-Host' => Setting.host_name,
|
'X-Redmine-Host' => Setting.host_name,
|
||||||
'X-Redmine-Site' => Setting.app_title,
|
'X-Redmine-Site' => Setting.app_title,
|
||||||
'Precedence' => 'bulk',
|
'X-Auto-Response-Suppress' => 'OOF',
|
||||||
'Auto-Submitted' => 'auto-generated'
|
'Auto-Submitted' => 'auto-generated'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ class MailerTest < ActiveSupport::TestCase
|
||||||
Mailer.deliver_issue_add(issue)
|
Mailer.deliver_issue_add(issue)
|
||||||
mail = ActionMailer::Base.deliveries.last
|
mail = ActionMailer::Base.deliveries.last
|
||||||
assert_not_nil mail
|
assert_not_nil mail
|
||||||
assert_equal 'bulk', mail.header_string('Precedence')
|
assert_equal 'OOF', mail.header_string('X-Auto-Response-Suppress')
|
||||||
assert_equal 'auto-generated', mail.header_string('Auto-Submitted')
|
assert_equal 'auto-generated', mail.header_string('Auto-Submitted')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue