# 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:** [18 مايو 2016، 3:43م 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:** 2

<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: [18 مايو 2016، 4:23م UTC](https://meta.discourse.org/t/discourse-emails-not-threaded-properly-in-some-email-clients/44444/2 "2016-05-18T16:23:27Z")

</div>

Here’s what we use when we send an email

```ruby
post_identifier = "<topic/#{topic_id}/#{post_id}@#{host}>"

@message.header['Message-ID'] = post_identifier

```

This looks correct to me, we set the `Message-Id` header to the Id of the post. Your mail client should use that as the `In-Reply-To` header.

---

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