jessfraz / gmailfilters

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

Add support for using filters to apply categories. #14

Closed chrisgavin closed 1 month ago

chrisgavin commented 4 years ago

Gmail has a pretty useful feature called categories, which allow showing different pre-defined tabs for different categories of emails in the Gmail web interface, like so.

image

Different categories can be shown and hidden in the Gmail settings, but the list of possible categories is always fixed. A list of possible categories can be found here.

This pull request extends gmailfilters to be able to create filters that apply categories to emails based on custom criteria. This is done with an extra categorize property on the filter, which can be set to any of the possible categories ("PERSONAL", "SOCIAL", "PROMOTIONS", "UPDATES" or "FORUMS"), or a differently-cased variant.


Thanks for making this awesome tool; it makes managing my filters way easier!

chrisgavin commented 1 month ago

Closing as I think this repository might no loner be maintained.

https://github.com/mbrt/gmailctl/ seems to be a similar alternative that supports categories.