Email-in replies thread wrongly

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.

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.

「いいね!」 2