summaryrefslogtreecommitdiffstats
path: root/app/models/mailer.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-13 10:44:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-13 10:44:41 +0000
commit23a06ec0225442051a7c1043979a1a109d05142c (patch)
tree6debe6b1b2882949ad832e7711648c2f481eff41 /app/models/mailer.rb
parent4f0aa2432c2c1a90fd22a32eb33868f6d50a7f49 (diff)
downloadredmine-23a06ec0225442051a7c1043979a1a109d05142c.tar.gz
redmine-23a06ec0225442051a7c1043979a1a109d05142c.zip
Restored List-Id header in email notifications (#10888).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9687 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r--app/models/mailer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index ef497986e..ca988cdd8 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -374,7 +374,8 @@ class Mailer < ActionMailer::Base
'X-Redmine-Site' => Setting.app_title,
'X-Auto-Response-Suppress' => 'OOF',
'Auto-Submitted' => 'auto-generated',
- 'From' => Setting.mail_from
+ 'From' => Setting.mail_from,
+ 'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
# Removes the author from the recipients and cc
# if he doesn't want to receive notifications about what he does