Skip to content

Commit

Permalink
Compliant with RFC 2919 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
taqueci committed Feb 14, 2017
1 parent b944193 commit 90f7951
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/redmine_mail_from/mailer_model_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ def mail_with_patch(headers={}, &block)
break if nerr == 0
end

host = Setting.host_name.split(/\//).first

if @issue
listid = "<#{@issue.project.identifier}.#{host}>"
else
listid = "<#{host}>"
end

headers['From'] = from
headers['List-Id'] = listid

mail_without_patch(headers, &block)
end
Expand Down

0 comments on commit 90f7951

Please sign in to comment.