Email-in Filtering or Multiple Emails per Category/Group

Discourse Automation might work, but requires a bit of knowledge to make these use-cases work. Let’s see:

  1. When Group A receives an email
  2. If the sender is foo@bar AND the Subject starts with INVOICE
  3. Tag topic with ‘invoice’
  4. Move topic to category X
  5. End of filter.

Can someone translate this into Discourse Automation?