jessfraz / gmailfilters

A tool to sync Gmail filters from a config file to your account.
MIT License
548 stars 34 forks source link

Download existing Filters #20

Closed ahmadawais closed 4 years ago

ahmadawais commented 4 years ago

Thanks for creating this automation script, @jessfraz!

I can't use this awesome script because I have hundreds of filters created in the UI. I wish there could be a downloader for these settings that downloads/converts the existing filters to a file.

Feature request.

ahmadawais commented 4 years ago

I had initially missed it. But one can already do this.

  1. Follow the setup here
  2. Download credentials.json and the setup will create a token.json file
  3. Create a config file yourself touch filters.conf
  4. Run the following command
gmailfilters -f credentials.json -t token.json -e filters.conf

This may help people.