# Discourse Emails not threaded properly in some Email clients

**URL:** https://meta.discourse.org/t/discourse-emails-not-threaded-properly-in-some-email-clients/44444
**Category:** Support
**Created:** [May 18, 2016, 3:43pm UTC](https://meta.discourse.org/t/discourse-emails-not-threaded-properly-in-some-email-clients/44444 "2016-05-18T15:43:54Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 25, 2016, 10:34pm UTC](https://meta.discourse.org/t/discourse-emails-not-threaded-properly-in-some-email-clients/44444/12 "2016-11-25T22:34:11Z")

</div>

I recently [pushed a fix](https://github.com/discourse/discourse/commit/74b6fe8739d86dc2284707e8507ac732420a1b8c) that will:

- **Only** set the “`In-Reply-To`” and “`References`” headers when it’s a reply (ie. `post_number > 1`)
- Set the “`In-Reply-To`” header to the **newest** of the referenced (_either replied to or quoted_) posts
- Set the “`References`” header to **the topic** as well as **all referenced** posts (if any).

This should ensure the emails are threaded properly on any decent 📧 client 😉

---

_[View the full topic](https://meta.discourse.org/t/discourse-emails-not-threaded-properly-in-some-email-clients/44444)._
