diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/mailer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index bd94b9f5b..2502ce2e0 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -41,6 +41,7 @@ class Mailer < ActionMailer::Base 'Issue-Author' => issue.author.login redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to message_id issue + @author = issue.author recipients issue.recipients cc(issue.watcher_recipients - @recipients) subject "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}" @@ -394,6 +395,10 @@ class Mailer < ActionMailer::Base cc.delete(@author.mail) if cc end + if @author.logged? + redmine_headers 'Sender' => @author.login + end + notified_users = [recipients, cc].flatten.compact.uniq # Rails would log recipients only, not cc and bcc mylogger.info "Sending email notification to: #{notified_users.join(', ')}" if mylogger |