3 ms·
See also https://github.com/ranmocy/gmail-automata https://github.com/ranmocy/gmail-automata for a more generalized variant.
by rrdharan 5y ago
See also https://github.com/ranmocy/gmail-automata https://github.com/ranmocy/gmail-automata for a more generalized variant.
- mattst88 5y agoThanks, that looks impressive. It doesn't look like it supports filtering on headers -- at least I don't see any calls to GmailMessage.getHeader(), and the only call to GmailMessage.getRawContent() appears to be in retrieving the ListID header (which Gmail's search natively supports). Looks like there's an open feature request for generalized header matching: https://github.com/ranmocy/gmail-automata/issues/36 https://github.com/ranmocy/gmail-automata/issues/36 I noticed that in the article I referenced (https://mjasion.pl/label-gitlab-notifications/ https://mjasion.pl/label-gitlab-notifications/) they also don't mention using getHeader and instead use getRawContent. It makes me wonder if the getHeader API was added more recently than this article and the project you mention.
- stevekemp 5y agoThat's pretty cool, thanks for sharing. I wrote a simple scripting utility to do similar labeling actions, bacause I came to gsuite with a large procmail configuration file previously. It was useful for a while, but gradually I stopped updating the filters: https://github.com/skx/labeller https://github.com/skx/labeller Nice to see there are other people doing similar things though, I'll definitely take a look at this more carefully over the next few days.