# Email-in replies thread wrongly

**URL:** <https://meta.discourse.org/t/email-in-replies-thread-wrongly/59365>\
**Category:** Bug\
**Created:** [March 17, 2017, 5:34pm UTC](https://meta.discourse.org/t/email-in-replies-thread-wrongly/59365 "2017-03-17T17:34:33Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Post date:** [May 10, 2017, 3:19pm UTC](https://meta.discourse.org/t/email-in-replies-thread-wrongly/59365/10 "2017-05-10T15:19:36Z")

</div>

> [@mpalmer](#):
>
> I don’t suppose avoiding Amazon’s Spam Enablement Service is an option?

I’ve discussed it with my team, and we’re not immediately sure we have the budget for any other option. It’s cheap, but I guess there’s a reason why…

I also expect there’s a lot of other Discourse sites out there using SES, and it would be nice to come up with a fix for them too.

> [@elijah](#):
>
> If possible a verp-style variable Reply-To address would be much cleaner.

I’m not sure if this is what you were getting at, but it occurs to me that the reply key of each email is unique, and gets returned with every email-in. So if we were to (again, behind a pref, or conditionally on the SMTP creds being SES ones) on send store the reply key and associated post id in the db, and on receive fetch that post id from the db with the reply key, we’d be able to associate replies with their parents without making anyone at the IETF cry.

---

_[View the full topic](https://meta.discourse.org/t/email-in-replies-thread-wrongly/59365)._
