A platform for community discussion. Free, open, simple.
FEATURE: disable outlooks reaction via email (#35674)
Samc60e0abe92ab
diff --git a/lib/email/message_builder.rb b/lib/email/message_builder.rbindex 939e50274fb..6fad84f7c7d 100644--- a/lib/email/message_builder.rb+++ b/lib/email/message_builder.rb@@ -285,6 +285,9 @@ module Email# Please, don't send us automatic responses...result["X-Auto-Response-Suppress"] = "All"+ # Disable Outlook's noisy "reaction via email" feature+ result["x-ms-reactions"] = "disallow"+if !allow_reply_by_email?# This will end up being the notification_email, which is a# noreply address.diff --git a/spec/lib/email/message_builder_spec.rb b/spec/lib/email/message_builder_spec.rbindex ee8735afa73..36218b88b82 100644--- a/spec/lib/email/message_builder_spec.rb+++ b/spec/lib/email/message_builder_spec.rb@@ -111,6 +111,10 @@ RSpec.describe Email::MessageBuilder doexpect(header_args["X-Auto-Response-Suppress"]).to eq("All")end+ it "disables Outlook's reaction via email feature" do+ expect(header_args["x-ms-reactions"]).to eq("disallow")+ end+describe "include_respond_instructions" docontext "when include_respond_instructions is false" dolet(:private_reply) { false }