How do I filter all e-mails from various Discourse instances?

I want all Discourse-generated e-mails to be automatically moved to a folder on e-mail client.

Which rule shall I use for detecting Discourse-originated e-mails? I don’t see any obvious tags.

If you view source on the email you should be able to find the headers.

In GMail this is the “show original” menu item.

Found only one pattern:
“Message-ID” (or analogous header) begins with “topic/”

Expected to see the word “discourse” somewhere in headers…

1 Like

Just confirming this is about the best you can do, we do not place a particular custom header on every single email we send. You would need a rule per site or trytopic/* in the Message-ID which may have false positives.

2 Likes