/gmxcli

Command line client for gmail, manage filters using simple YAML config

Primary LanguageGoMIT LicenseMIT

gmxcli: a command line client for GMail -- manage labels, filters using simple YAML config!

Go Report Card

Installation

Download pre-compiled binaries for Mac, Windows and Linux from the releases page.

Usage

gmxcli is largely self-documenting. Run gmxcli -h for a list of supported commands.

$ gmxcli labels list
...
$ gmxcli filters delete # delete ALL existing filters, use with caution!
...
$ gmxcli filters upload -c gmxcli.yaml # Upload filters defined in the config file
...
# Sample configuration
filters:
  -
    criteria:
      to: "me"
    action:
      addLabelIds: ["To me"]
      removeLabelIds: ["INBOX", "UNREAD"]
  -
    criteria: ...