grc

Gmail Rule Converter: write Gmail filters in YAML and convert them to the native XML — without clicking rule by rule in the interface. Built for people with dozens of filters who want to version, review, and replicate the configuration.

Example

rules:
  - name: Newsletters
    author: "newsletter@"
    action:
      label: "Newsletters"
      skipInbox: true

  - name: GitHub
    author: "@github.com"
    subject: "notification"
    action:
      label: "GitHub"
      markRead: true
grc gmail filters.yaml

What’s included

  • YAML → Gmail filter XML (and the reverse path via Google Takeout)
  • Search expressions (from:, subject:, OR, negation)
  • Syntax validation before generating XML
  • Atom feed and search URL generation from the same YAML

Code and reading