Project

General

Profile

Patch #9563 » redmine_use_author_name_in_cc_from.patch

Alex Hornung, 2011-11-14 01:59

View differences:

app/models/mailer.rb Sun Nov 13 23:23:27 2011 +0000 → app/models/mailer.rb Sun Nov 13 23:34:42 2011 +0000
49 49
    # Add per-tracker global CC
50 50
    cc << issue.tracker.mail_cc
51 51

  
52
    # Add the creator's name to the from field
53
    from "#{issue.author.firstname} #{issue.author.lastname} via Redmine <#{Setting.mail_from}>"
54

  
52 55
    subject "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}"
53 56
    body :issue => issue,
54 57
         :issue_url => url_for(:controller => 'issues', :action => 'show', :id => issue)
......
76 79
    # Add per-tracker global CC
77 80
    cc << issue.tracker.mail_cc
78 81

  
82
    # Add the editor's name to the from field
83
    from "#{@journal.user.firstname} #{@journal.user.lastname} via Redmine <#{Setting.mail_from}>"
84

  
79 85
    s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] "
80 86
    s << "(#{issue.status.name}) " if journal.new_value_for('status_id')
81 87
    s << issue.subject
(2-2/2)