Add email header to distinguish reply emails from other emails

As discourse gets closer to its goal of becoming the wordpress for forums, I’m a member of a growing number of discourse forums and all of these are sending emails to my inbox. Most of those notification emails, I’d like to file into a separate folder right when they arrive. Most, but not all. For example, I’d like to keep replies to my posts and mentions in my Inbox.

Is there any way to identify these based on email headers? If not, we can also search the message body…

Edit: Given that there currently seems to be no answer to this question, I’m turning this into a feature request: please add an email header that specifies what kind of email this is (i.e. why discourse is sending it).

6 Likes

Necro-Liking this request. We have emails that are copies of notifications sent to members, as well as notifications to the sysadmin about system events.Filtering on email text is futile because of multi-lingual support. I have a growing list of Sieve filters to sort Discourse mail using subject and body content markers … it’s primitive.

Unless this is already implemented and I missed it, I’ll +1 this request with a bit more detail:

For every email type that is sent by this platform, set a default email header, allow a change of that header, and allow all headers to be disabled (with Disabled as the default for established sites).

Examples:
X-Discourse-Type: user 2FA changed
X-Discourse-Type: user confirm new address
X-Discourse-Type: user confirm new account
X-Discourse-Type: user reminder to confirm new account
X-Discourse-Type: user password reset
X-Discourse-Type: admin backup download
X-Discourse-Type: admin update available

If this will probably not be an enhancement, or if this can already be done with code, please advise on how we can do this, or provide an alternative mechanism to accomplish the same goals.

Thanks!