diff options
author | Philip Blatter <philip.blatter@jamit.de> | 2014-01-22 01:34:39 +0100 |
---|---|---|
committer | Philip Blatter <philip.blatter@jamit.de> | 2014-05-05 21:46:51 +0200 |
commit | 06bed543e69c16d4c267d1bd49e879c3e9b761e9 (patch) | |
tree | 4075ba0baa71ebe4e18cb142978ad0c97549510a /app/mailers/notify.rb | |
parent | aeb5a01ed15929b116d1750b7da2433498c305e0 (diff) | |
download | gitlab-ce-06bed543e69c16d4c267d1bd49e879c3e9b761e9.tar.gz |
Added email threading for update emails on issues and merge requests (if the mail client support the References: mail header)
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r-- | app/mailers/notify.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 554f53cf148..84a0da0129d 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -53,6 +53,22 @@ class Notify < ActionMailer::Base end end + # Set the Message-ID header field + # + # local_part - The local part of the message ID + # + def set_message_id(local_part) + headers["Message-ID"] = "<#{local_part}@#{Gitlab.config.gitlab.host}>" + end + + # Set the References header field + # + # local_part - The local part of the referenced message ID + # + def set_reference(local_part) + headers["References"] = "<#{local_part}@#{Gitlab.config.gitlab.host}>" + end + # Formats arguments into a String suitable for use as an email subject # # extra - Extra Strings to be inserted into the subject |