gmail-britta
gmail-britta copied to clipboard
Generate complex gmail filters via a neat little ruby DSL
~/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/haml-3.1.8/lib/haml/version.rb:78:in `revision_number': undefined method `exists?' for File:Class (NoMethodError) haml is outdated, should be updated.
Mentioned at https://support.google.com/mail/answer/9350995?hl=en (under bundles) or on several tips on reddit.
``` filter { has ["foo", "bar"] label "a" }.otherwise { has ["foo"] label "b" }.archive_unless_directed ``` produces a query like `foo -{(to:me bar)}` (for the `archive_unless_directed` filter), but i would...
Given ```ruby filter { has %w{list:[email protected]} label "some-side-project" } ``` It's difficult to tell that `#has` is search query, and `#label` is the action.
This is a feature request. Currently `#has` is like: ```ruby has %w{from:[email protected] cc:[email protected]} ``` This from time to time confuses syntax highlight, so I typically writes ```ruby has ['from:[email protected]', 'cc:[email protected]']...
The [new settings API](https://developers.google.com/gmail/api/v1/reference/#Users.settings.filters) allows listing and deleting filters, which would be super adequate for syncing filters to a real-live gmail account (without going through the manual "import" dance). We...
(think this is cool btw)
A clause like ``` filter { has [FOO] }.archive_unless_directed ``` will still generate two filters, one for directed emails and one for not, but the latter one will be empty,...
The string manipulation it does is fairly ad-hoc and terrible, and there is exactly one test for it (prompted by #4). I think this should be way better. The most...