summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@ocrete.ca>2018-12-13 11:15:48 +0000
committerSean McGivern <sean@gitlab.com>2018-12-13 11:15:48 +0000
commita96cd7cb2bd3cfcafc30a349bdd9289f9db055a5 (patch)
treed76a1149567ab764c31fdc7ee50a033e7f69005c /app/mailers
parent3821813d1a5f43c1e7dc43347425198b38f1086d (diff)
downloadgitlab-ce-a96cd7cb2bd3cfcafc30a349bdd9289f9db055a5.tar.gz
Add List-Id to notification emails
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 49a3920e43f..15710bee4d4 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -3,6 +3,7 @@
class Notify < BaseMailer
include ActionDispatch::Routing::PolymorphicRoutes
include GitlabRoutingHelper
+ include EmailsHelper
include Emails::Issues
include Emails::MergeRequests
@@ -194,6 +195,7 @@ class Notify < BaseMailer
headers['X-GitLab-Project'] = @project.name
headers['X-GitLab-Project-Id'] = @project.id
headers['X-GitLab-Project-Path'] = @project.full_path
+ headers['List-Id'] = "#{@project.full_path} <#{create_list_id_string(@project)}>"
end
def add_unsubscription_headers_and_links