This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//A simple, kludgey bellend blocker, for Google Apps Script. Use in conjunction with Gmail email filters. | |
//Loosely based on work by boly38: https://stackoverflow.com/questions/36377391/script-to-permenantly-delete-my-emails-with-google-script | |
//No rights reserved. | |
function bellendBlocker() { | |
Logger.log ('Starting Bellend Blocker...') | |
//Basic settings: which email address, what label, what to do with matching emails | |
var mymail = [PUT YOUR EMAIL ADDRESS HERE]; | |
var mylabel = [PUT YOUR EMAIL LABEL HERE]; | |
var purgeNotDelete = [TRUE OR FALSE]; |