3 ms·
I started experiencing this myself a couple months ago, and of course searching for any sort of solution with modern search engines is a path to insanity. Beca
by cfeduke 4y ago
I started experiencing this myself a couple months ago, and of course searching for any sort of solution with modern search engines is a path to insanity.
Because almost all of the spam that is getting through - to me, at least - follows a very simple template - something that spam blockers should be incredibly good at handling - I was able to concoct a reasonable solution.
Google has this Apps Script thing* where you can deposit JavaScript and then schedule that JavaScript to run every minute. They expose a Gmail API and once you've given your script access to your Gmail inbox, you can process the unread messages and look for telltale signs of spam (for me, inspecting the subject for a regex match of `/confirmation#/i` has been adequate[0]) and finally move the message to spam. Since it runs every minute instead of on an event of new mail, new messages may appear unread for a short period of time.
* though there are options to deploy your project it is not necessary to do so in order to run the script on a schedule
0. https://gist.github.com/cfeduke/1dfb7f650b9abbfce549eddffc9678bd https://gist.github.com/cfeduke/1dfb7f650b9abbfce549eddffc96...