<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65625>65625</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Email threading for github PR notifications
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue,
            github-prs
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          preames
      </td>
    </tr>
</table>

<pre>
    Unless I've missed something digging through the mailer script ([https://github.com/llvm/llvm-admin/blob/main/AWS/Lambda/PREmailer/pr_emailer.py](https://here/)), and the resulting email headers, it doesn't look like we're setting appropriate headers to assist email clients in threading PR responses.  Or at least, I use Thunderbird, and can't figure out how to get the notices threaded.

I don't have much experience with this part of email sending, but I understand there's a In-Reply-To header which should be set. The challenge is going to be that this requires state in the mailer as we'll have to track the message idea for each previous message in the thread. 

If there's an alternate way to solve this - i.e. I just haven't found the right client option yet - feel free to suggest alternative approaches.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVE1v4zYQ_TX0ZWBBpq3YPuiQ3VRAgAJdpCl6LEbSSOSGJlXOMK7_fUHK2Y_bAoYlgeR7b97MIzLb2RO1qvmkmqcNJjEhtkskvBBv-jDe2r-8I2Z4Vvr4TnCxzDQChwuJsX6G0c5zfoqJIc0GxBBc0DqKwEO0i4DSJ9V8MiILq_2j0p3S3WzFpL4awkXpzrn3j8cWx4v1Sne9C73S3QXL1-Pffyrd_Y6XfkSluy8vv60USndL_IfWj2q5qeZJ6dPPVIYilbdz-X0G9GNRGYmTk6y9AIAhHCly3mIFxkDslT4KuBDewNk3gispfYwETFLO4bLEsESLQh-nQQJkV1nuqIOz5IXB-mwR4ZgPfnnJ7EvwTFwB_BEBBRwhS2Z_hsQEryb5kWJv4_ihesBV0WTnFAlCEjDhmilnklKTD2IH4jsVjZWqn1T9uP4_wxhWAIO5lWkwQP8tFC35geBqJbfPMiwYBcJ0r4DJZ9FZRJ8kq8u6WO4-ZnePDAjPfvtCi7ttX8PdDbgaOxhgE5IboS_GVfBqCAaDzpGfCSzDHMoAhbxDDMoqItK_yUZiYMn-Fv--jRby2gzn1lokgEQc3tY9xIwZeiSEKUQgHAwskd5tSPx9eUVcrargJ6emHyvzgE4o-izjirdMxsFl1qxzC7aiCp7ha-LV2XuTQvoYNDsbuQ8ChEVs8HAjgS1MRA6mSKUATvNMLN_I7DutE4aDIa42Y7sfz_szbqjdPZwPu3p30vuNaXc4DYe6bpp-Ohwnfe51c-y1bgZs6qY_DBvb6lrv63N93DVNrfcVHnca9ZlOu-MO6XRSh7q0usoRrEKcN5Y5UfvQPOhm47Anx-WK0NrTFcqi0lrpz0rrNcrbJSdH50sktiXJfZpZHWpnWfg7sFhx1Jb4_pCH3KQVJ0cjD_FkB8xG8SZF1_7i5bHE8JUGUborElnprpTwfwAAAP__4TOpKg">