summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-11 07:15:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-11 07:15:38 +0000
commit09eef4e75c022cb4b196b6612e65a74bd8f156ed (patch)
treeb5f1bbaaa1e4ebd977304f9bac54d4421965476b /test
parent11e8dc263f9ab8316ed152c2ff6715068cd31c14 (diff)
downloadredmine-09eef4e75c022cb4b196b6612e65a74bd8f156ed.tar.gz
redmine-09eef4e75c022cb4b196b6612e65a74bd8f156ed.zip
Mail handler should not ignore emails with x-auto-response-suppress header (#19558).
Patch by Sebastian Paluch. git-svn-id: http://svn.redmine.org/redmine/trunk@14159 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/mail_handler_test.rb1
-rw-r--r--test/unit/mailer_test.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index f70128dd2..2ae3cb5c1 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -629,7 +629,6 @@ class MailHandlerTest < ActiveSupport::TestCase
def test_should_ignore_auto_replied_emails
MailHandler.any_instance.expects(:dispatch).never
[
- "X-Auto-Response-Suppress: OOF",
"Auto-Submitted: auto-replied",
"Auto-Submitted: Auto-Replied",
"Auto-Submitted: auto-generated",
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 52b6a62ee..0b985c171 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -197,7 +197,7 @@ class MailerTest < ActiveSupport::TestCase
Mailer.deliver_issue_add(issue)
mail = last_email
assert_not_nil mail
- assert_equal 'OOF', mail.header['X-Auto-Response-Suppress'].to_s
+ assert_equal 'All', 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