This file contains hidden or 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
| // To deploy: paste into a new project at script.google.com, adjust the RULES, run | |
| // installTrigger() once, and approve the Gmail OAuth prompt. | |
| // ==== Debug ==== | |
| // Logs go to the Executions view (left sidebar in the Apps Script editor). | |
| var DEBUG_LOG = false; // note: JS lowercase false, not False | |
| // ==== Rules ==== | |
| // header -> value regex -> list of actions. | |
| // Regexes are unanchored (use ^...$ to match the whole value) and |
OlderNewer