From 6c22bf4b9afb26af56430ec9f9e191502fb0ee60 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 2 Jan 2020 18:47:14 +0000 Subject: [PATCH] Set X-Entity-Ref-ID header on notification emails This disables threading in gmail completely - without it all notifications of a given type are grouped together. --- app/mailers/notifier.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/mailers/notifier.rb b/app/mailers/notifier.rb index 1d33db9d8..c60dff84b 100644 --- a/app/mailers/notifier.rb +++ b/app/mailers/notifier.rb @@ -218,7 +218,9 @@ class Notifier < ApplicationMailer def set_references(scope, reference_object) ref = "osm-#{scope}-#{reference_object.id}@#{Settings.server_url}" + + headers["X-Entity-Ref-ID"] = ref headers["In-Reply-To"] = ref - headers["References"] = ref + headers["References"] = ref end end -- 2.43.2