summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 8cbc9eefc7b..e7331d88517 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -121,11 +121,17 @@ class Notify < BaseMailer
#
# See: mail_answer_thread
def mail_new_thread(model, headers = {})
- headers['Message-ID'] = message_id(model)
+ headers['Message-ID'] = message_reply_id
+ headers['In-Reply-To'] = message_id(model)
+ headers['References'] = message_id(model)
mail_thread(model, headers)
end
+ def message_reply_id
+ Gitlab.config.incoming_email["address"].gsub("%{key}", reply_key)
+ end
+
# Send an email that responds to an existing conversation thread,
# with headers suitable for grouping by thread in email clients.
#