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.
This commit is contained in:
Tom Hughes 2020-01-02 18:47:14 +00:00
parent a336bb9067
commit 6c22bf4b9a

View file

@ -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