jessfraz / gmailfilters

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

Calculate hits on each filter #13

Open crossan007 opened 5 years ago

crossan007 commented 5 years ago

Part of #10

When run with -h, calculate the number of hits each filter matches on the mailbox.

Produces results like:

[[Filter]]
Query = "from:(no-reply@pluralsight.com)"
Archive = true
Read = false
Delete = false
ToMe = false
ArchiveUnlessToMe = false
Label = "P2/Pluralsight"
ForwardTo = ""
Hits = 5
crossan007 commented 5 years ago

This depends on #12, which I just discovered has some issues.