Defect #14792 ยป fix-14792.diff
| app/models/mailer.rb (working copy) | ||
|---|---|---|
|
'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|
|
||
| test/unit/mailer_test.rb (working copy) | ||
|---|---|---|
|
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 <redmine@example.net>'
|
||
|
issue = Issue.find(1)
|
||
|
Mailer.deliver_issue_add(issue)
|
||
|
mail = last_email
|
||
|
assert_equal '<redmine.example.net>', mail.header['List-Id'].to_s
|
||
|
end
|
||
|
def test_plain_text_mail
|
||
|
Setting.plain_text_mail = 1
|
||
|
journal = Journal.find(2)
|
||