antifuchs / gmail-britta

Generate complex gmail filters via a neat little ruby DSL
MIT License
758 stars 33 forks source link

How gmail-britta solves that XML filter list may be randomly reordered on import? #28

Closed matkoniecz closed 6 years ago

matkoniecz commented 6 years ago

What this library does is generate XML that you can import.

Is this XML file resistant to fact that Gmail recently to randomly reorder files imported from XML? It broke my homegrown filter generator that also had chaining support and I am curious is britta solution for my problem or is it also affected.

antifuchs commented 6 years ago

Huh, that's concerning. I haven't seen import failures yet (on my 500 filter setup), but if they start randomly reordering filters, the XML that gmail-britta generates is likely just as affected as your tool.

One thing that might work is to use the new users.settings api that gmail offers; I believe gmail-yaml-filters can be configured to use that.

I'll close this issue, but feel free to comment with your experience reports here!

matkoniecz commented 6 years ago

Thanks for the reply!

Huh. So either I am really unlucky or something weird is happening. Or maybe it affects overgrown filter lists, mine had 1800 filters when I noticed it and I reduced it to 800.

I will try to review filters and go to 500, maybe it will fix my problem.

bexelbie commented 6 years ago

As another data point, and not intending to reopen - I am seeing reordering on a 28 rule filter.