discourse/lib/email
Felix Wolfsteller c302c28a7d Switch ids in References-Header field of mails. (#5567)
This change allows email-clients to show threaded views of mails as
expected.  Apparently most algorithms expect the message ids of mails
in the Reference-header-field to be sorted such that they build a
traversal through the thread, so the oldest (original) message being
first, then its child, grandchild and so on until it arrives at the
message id that the "new" mail (that is to be sent) is the reply to.

MSGA [1]
+- Re: MSGA [1-1]
|  +- Re: Re: MSGA [1-2-1]
|  +- Re: Re: MSGA [1-2-2]
+- Re: MSGA [1-1]

If the stuff in brackets would be the message ID, the References-Header
field of a message that is a reply to [1-2-1] should look like:

References: 1, 1-1, 1-2-1

Discussion took place in:
https://meta.discourse.org/t/e-mail-threading-in-ml-mode-does-not-work-in-thunderbird

Main information taken from:
https://www.jwz.org/doc/threading.html
2018-02-22 10:48:23 +01:00
..
message_builder.rb FEATURE: add setting which adds group name to PM email subject (#5475) 2018-02-19 10:20:17 +01:00
processor.rb suppress rejection email when email was sent to mailinglist mirror category 2017-11-17 15:29:14 +01:00
receiver.rb FIX: support incoming emails with just an attachment 2018-02-16 18:14:56 +01:00
renderer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
sender.rb Switch ids in References-Header field of mails. (#5567) 2018-02-22 10:48:23 +01:00
styles.rb UX: add onebox favicon styling in email 2017-12-05 14:08:30 +05:30