Index: app/models/mailer.rb =================================================================== --- app/models/mailer.rb (revision 17863) +++ app/models/mailer.rb (working copy) @@ -621,7 +621,7 @@ 'X-Auto-Response-Suppress' => 'All', 'Auto-Submitted' => 'auto-generated', 'From' => Setting.mail_from, - 'List-Id' => "<#{Setting.mail_from.to_s.tr('@', '.')}>" + 'List-Id' => "<#{Setting.mail_from_address.tr('@', '.')}>" # Replaces users with their email addresses [:to, :cc, :bcc].each do |key| Index: test/unit/mailer_test.rb =================================================================== --- test/unit/mailer_test.rb (revision 17863) +++ test/unit/mailer_test.rb (working copy) @@ -213,6 +213,14 @@ assert_equal issue.author.login, mail.header['X-Redmine-Sender'].to_s end + def test_email_headers_list_id_should_not_include_display_name + Setting.mail_from = 'Redmine ' + issue = Issue.find(1) + Mailer.deliver_issue_add(issue) + mail = last_email + assert_equal '', mail.header['List-Id'].to_s + end + def test_plain_text_mail Setting.plain_text_mail = 1 journal = Journal.find(2)