# Emails are not threaded in Outlook 2013

**URL:** <https://meta.discourse.org/t/emails-are-not-threaded-in-outlook-2013/16501>\
**Category:** Bug\
**Created:** [6월 13, 2014, 4:36오전 UTC](https://meta.discourse.org/t/emails-are-not-threaded-in-outlook-2013/16501 "2014-06-13T04:36:40Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [11월 27, 2014, 12:25오전 UTC](https://meta.discourse.org/t/emails-are-not-threaded-in-outlook-2013/16501/31 "2014-11-27T00:25:11Z")

</div>

Which is fine, but let’s say this happens:

1. You read a topic.
2. You reply to post #25 in that topic as post #27.
3. You go offline for hours.
4. Post #28 arrives and mentions your name (it is not a reply)

So there are three numbers in play here:

1. the topic (post #1)
2. Your post (post #27)
3. The post which mentions you (post #28)

Note that **this post is a reply to the _topic_**. That’s the typical case, **we want email to thread based on the TOPIC**. We have no idea if you have an email about the first post, though.

So when you get an email notification about the mention (post #28), that email should contain:

```
Message-ID: <topic/16501/28@meta.discourse.org>
In-Reply-To: <topic/16501@meta.discourse.org>
References: <topic/16501@meta.discourse.org> 

```

I guess “References” is the key here? All the posts in a topic should “reference” the first post, even though you may not have that email message.

Right now it says

```
Message-ID: <54752ba335286_633fee205cc454883a2@tiefighter6-virtual_host.mail>
In-Reply-To: <topic/91@talk.thumbtack.io>
References: <topic/91@talk.thumbtack.io>

```

So the only thing missing is the Message-ID header. All replies are in reply to the first post of the topic, though..

OK I just checked this in

```plaintext
topic_identifier = "<topic/#{topic_id}@#{host}>"
post_identifier = "<topic/#{topic_id}/#{post_id}@#{host}>"
@message.header['Message-ID'] = post_identifier
@message.header['In-Reply-To'] = topic_identifier
@message.header['References'] = topic_identifier

```

Let’s see if that helps? no idea, but I can check headers..

---

_[View the full topic](https://meta.discourse.org/t/emails-are-not-threaded-in-outlook-2013/16501)._
