- Go to https://script.google.com
- Create a New Project
- Replace the
Code.gs
file it creates for you with the javascript below (copy/paste) - Save the script
- Go to Triggers (looks like an alarm clock on left-hand side)
- Create a Trigger that acts every 10 minutes and calls
filterNGPVANSpam
- You'll need to authorize this script to act on your behalf, which may require that you use the scary "Advanced" section to allow the script to read/write to your email inbox.
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
"""gen_build_data: generate build_data from various templates. | |
This does something very simple: concatenates bazel's stable-status and | |
volatile-status linkstamp data with an optional header and footer. | |
""" | |
def _gen_build_data_impl(ctx): | |
cmd = ["cat"] | |
inputs = [ | |
ctx.version_file, # volatile-status.txt |