Import and Export Mail Rules

The Problem

I have a couple of Gmail accounts that I check with Mailspring.

They both get a ton of the same alerts (Google Calendar, Docs, Trello, etc). One is already set up to filter these automated notices into folders where I’ll see them but they won’t drown my inbox. I would love to duplicate the rules for the other account.

Proposed Solution and Alternative Solutions

I’m agnostic on how it should work. I would be happy to export some kind of YAML and then import it for the other account or maybe there’s another mechanism that would work better. But I want some kind of way to copy rules from one account to another.

And honestly I’d sometimes love to share my rules.