]> source.dussan.org Git - redmine.git/commitdiff
Adds a List-Id header to all emails (#2879).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2009 15:14:10 +0000 (15:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2009 15:14:10 +0000 (15:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2565 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index 8a472b343d621cdc024f4d2329e69d449cd3ee45..c348adf13bd4fe122de27321428086236e83408a 100644 (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-')