Project

General

Profile

Feature #31910 ยป 31910.patch

Go MAEDA, 2019-09-02 15:18

View differences:

app/models/mailer.rb
71 71
  def issue_add(user, issue)
72 72
    redmine_headers 'Project' => issue.project.identifier,
73 73
                    'Issue-Id' => issue.id,
74
                    'Issue-Tracker' => issue.tracker.name,
74 75
                    'Issue-Author' => issue.author.login
75 76
    redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
76 77
    message_id issue
......
102 103
    issue = journal.journalized
103 104
    redmine_headers 'Project' => issue.project.identifier,
104 105
                    'Issue-Id' => issue.id,
106
                    'Issue-Tracker' => issue.tracker.name,
105 107
                    'Issue-Author' => issue.author.login
106 108
    redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
107 109
    message_id journal
test/unit/mailer_test.rb
208 208
    assert_equal 'auto-generated', mail.header['Auto-Submitted'].to_s
209 209
    # List-Id should not include the display name "Redmine"
210 210
    assert_equal '<redmine.example.net>', mail.header['List-Id'].to_s
211
    assert_equal 'Bug', mail.header['X-Redmine-Issue-Tracker'].to_s
211 212
  end
212 213

  
213 214
  def test_email_headers_should_include_sender
    (1-1/1)