# Threading for email-only topics seems broken

**URL:** https://meta.discourse.org/t/threading-for-email-only-topics-seems-broken/73523
**Category:** Support
**Created:** [06.Ноябрь.2017 15:14:22 UTC](https://meta.discourse.org/t/threading-for-email-only-topics-seems-broken/73523 "2017-11-06T15:14:22Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![gwmngilfen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gwmngilfen/32/302925_2.png) [@gwmngilfen](https://meta.discourse.org/u/gwmngilfen)
#### Post date: [07.Ноябрь.2017 12:17:44 UTC](https://meta.discourse.org/t/threading-for-email-only-topics-seems-broken/73523/3 "2017-11-07T12:17:44Z")

</div>

Thanks for the reply @codinghorror. I’ve had a search around, I think [this is the thread](https://meta.discourse.org/t/emails-not-threaded/44444) you’re referencing

So, OK, I accept that adding References / In-Reply-To to the first post is a hack (although it’s entirely RFC legal - consider what happens when you join a thread halfway through, your client has no history of the prior emails). I can probably drop that part of the patch.

However, I still need to address the larger point in some way - the headers contain IDs that cannot ever have existed in the mail client of any user (except the sender). I see that in the above thread @zogstrip added the [patch](https://github.com/discourse/discourse/commit/74b6fe8739d86dc2284707e8507ac732420a1b8c#diff-ab15baa919bf6490cc19dd60b7d8a5f8R95) that moved from using `<topic/#id/#post_id>` to using the original incoming mail header - but I must be misunderstanding how that’s supposed to work, because it _appears_ to cause the issue outlined in the first post. I think just using line 97 instead of the if/then/else would solve my problem, but I’m sure there’s more to it.

What did I miss?

---

_[View the full topic](https://meta.discourse.org/t/threading-for-email-only-topics-seems-broken/73523)._
