1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-11 01:51:32 +00:00

ignore X-Autoreply mails (#15999, #13425)

Contributed by Karel Pičman.

git-svn-id: http://svn.redmine.org/redmine/trunk@13738 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-12-12 04:58:31 +00:00
parent 0b1b46ae2c
commit 963719042a
2 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,8 @@ class MailHandler < ActionMailer::Base
cattr_accessor :ignored_emails_headers
@@ignored_emails_headers = {
'X-Auto-Response-Suppress' => 'oof',
'Auto-Submitted' => /\Aauto-(replied|generated)/
'Auto-Submitted' => /\Aauto-(replied|generated)/,
'X-Autoreply' => 'yes'
}
# Processes incoming emails

View File

@ -620,7 +620,8 @@ class MailHandlerTest < ActiveSupport::TestCase
"X-Auto-Response-Suppress: OOF",
"Auto-Submitted: auto-replied",
"Auto-Submitted: Auto-Replied",
"Auto-Submitted: auto-generated"
"Auto-Submitted: auto-generated",
'X-Autoreply: yes'
].each do |header|
raw = IO.read(File.join(FIXTURES_PATH, 'ticket_on_given_project.eml'))
raw = header + "\n" + raw