An open API service indexing awesome lists of open source software.

https://github.com/litencatt/grett

✉️ Send the first few lines of email in Gmail that match your search conditions to your Slack channel.
https://github.com/litencatt/grett

clasp gmail slack

Last synced: 3 months ago
JSON representation

✉️ Send the first few lines of email in Gmail that match your search conditions to your Slack channel.

Awesome Lists containing this project

README

          

# GMail receive then that(Grett)

## Usage
```
$ npx clasp login
$ npx clasp create --rootDir ./src
$ npx clasp -P src/ push
```

### Setup GAS
```
$ npx clasp -P src/ open
```
- Set your `SHEET_ID` and `SLACK_INCOMING_WEBHOOK_URL` to Project property

### Setup GMail search operator
- Make `config` sheet on a spreadsheet of `SHEET_ID` set to GAS property.
- Set operator value to A2 cell in `config` sheet.
![image](https://user-images.githubusercontent.com/17349045/140638902-b919fd70-0587-43a0-9f4c-4483b277ce92.png)

See more about GMail search operators => https://support.google.com/mail/answer/7190

### Set trigger
Set trigger schedule as you like.

#### e.g. trigger per 10 minutes