From: Tom Hughes Date: Thu, 2 Jan 2020 18:47:14 +0000 (+0000) Subject: Set X-Entity-Ref-ID header on notification emails X-Git-Tag: live~2270 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6c22bf4b9afb26af56430ec9f9e191502fb0ee60 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. --- 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