Automatically post emails that match the specified label to Slack.
Ref: https://gist.github.com/jamesramsay/9298cf3f4ac584a3dc05
- Create a new Google Apps Script at https://script.google.com
- Overwrite the placeholder with the javascript below
- Update the following constants:
LABELS_TO_POST
: The name of the Gmail Label that is to be postedWEBHOOK_URL
: Slack incoming webhook url
- Save the script, then run:
Initialize
Install
If you ever want to remove the script, run Uninstall
to remove any left over triggers.