Adds a List-Id header to all emails (#2879).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2565 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-03-07 15:14:10 +00:00
parent 04abeda1d7
commit 554e569de1
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ class Mailer < ActionMailer::Base
# Common headers
headers 'X-Mailer' => 'Redmine',
'X-Redmine-Host' => Setting.host_name,
'X-Redmine-Site' => Setting.app_title
'X-Redmine-Site' => Setting.app_title,
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
end
# Appends a Redmine header field (name is prepended with 'X-Redmine-')