jessfraz / gmailfilters

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

From: filters are not correctly represented #11

Open crossan007 opened 5 years ago

crossan007 commented 5 years ago

Gmail filters matched only on from: queries are not correctly represented by the program.

Given a filter with only a from criteria image I would expect a corresponding entry in the file produced by --export; however, only empty filter sets are produced:

[[Filter]]
Query = ""
Archive = false
Read = false
Delete = false
ToMe = false
ArchiveUnlessToMe = false
Label = ""
ForwardTo = ""

I suspect this is an issue because other criteria do generate values in the export file, such as compound criteria. example:

[[Filter]]
Query = "from:(\"wafflebot[bot]\") OR subject:(Apply fixes from StyleCI)"
Archive = false
Read = false
Delete = false
ToMe = false
ArchiveUnlessToMe = false
Label = "P1/00A2 - Github/Auto"
ForwardTo = ""
issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.