Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67772

Forums don't thread properly in email clients when message id's are rewritten

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Email, Forum
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      Sibling tracker to MDLSITE-6059. I originally though this was more of an AWS setup bug just with how moodle.org's email mta is setup, which overwrites the message id's created by moodle which breaks the threading. But then I realized that this can be gracefully worked around in a generic way in core.

      The problem is the first email in a thread would be like:

       

      Message-ID: <646082d990334df2b39@moodle.org>
      Thread-Index: 646082d990334df2b392e5aa6e91
      

       

      And then second email reply reference it:

      In-Reply-To: <646082d990334df2b39@moodle.org>
      References: <646082d990334df2b39@moodle.org>

      But AWS overwrites all message id's so the first email looks like:

       

      Message-ID: <0101016fa75a4c94-38bfe565-70ea-40c7-b321-c4c2368911a3-000000@us-west-2.amazonses.com>
      Thread-Index: 646082d990334df2b392e5aa6e91 
      

       

      But we don't actually need the message Id's to match, if we simply add the References to the initial email then most email clients will thread the anyway because they are designed to thread even with a partial subset of the emails.

      Message-ID: <0101016fa75a4c94-38bfe565-70ea-40c7-b321-c4c2368911a3-000000@us-west-2.amazonses.com>
      Thread-Index: 646082d990334df2b392e5aa6e91
      In-Reply-To: <646082d990334df2b39@moodle.org>
      References: <646082d990334df2b39@moodle.org>

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brendanheywood Brendan Heywood
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: