Skip to content

A platform for community discussion. Free, open, simple.

Switch ids in References-Header field of mails. (#5567)

Felix Wolfstellerc302c28a7d0d
diff --git a/lib/email/sender.rb b/lib/email/sender.rb
index 08e141a923e..fbe78e1a40b 100644
--- a/lib/email/sender.rb
+++ b/lib/email/sender.rb
@@ -109,7 +109,7 @@ module Email
else
@message.header['Message-ID'] = post_message_id
@message.header['In-Reply-To'] = referenced_post_message_ids[0] || topic_message_id
- @message.header['References'] = [referenced_post_message_ids, topic_message_id].flatten.compact.uniq
+ @message.header['References'] = [topic_message_id, referenced_post_message_ids].flatten.compact.uniq
end
# https://www.ietf.org/rfc/rfc2919.txt