From f953426935e87085a07940f0c86a667811a05cd1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 Nov 2011 16:30:35 +0000 Subject: [PATCH] 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 --- app/models/mailer.rb | 2 +- test/unit/mailer_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 4f5be2fc1..fddfef1df 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -378,7 +378,7 @@ class Mailer < ActionMailer::Base headers 'X-Mailer' => 'Redmine', 'X-Redmine-Host' => Setting.host_name, 'X-Redmine-Site' => Setting.app_title, - 'Precedence' => 'bulk', + 'X-Auto-Response-Suppress' => 'OOF', 'Auto-Submitted' => 'auto-generated' end diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 72ed1dec6..671b7df20 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -134,7 +134,7 @@ class MailerTest < ActiveSupport::TestCase Mailer.deliver_issue_add(issue) mail = ActionMailer::Base.deliveries.last 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') end -- 2.39.5