mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-12-22 20:11:21 +00:00
Google Apps-Script project to automate your Gmail account
cb0380add7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
src | ||
.claspignore | ||
.gitignore | ||
appsscript.json | ||
config.sample.js | ||
LICENSE | ||
Makefile | ||
package-lock.json | ||
package.json | ||
README.md |
Luzifer / gmail-manage
This Google Apps-Script project contains two functionalities to automate your Gmail account:
You can define:
- Gmail queries which will be used to delete matching mails
- Your Gmail filters in code, put them into a proper version management and let them get applied by a state-enforcer
Setup
- Create a
config.js
from theconfig.sample.js
- Get yourself a configured clasp
- Create a Google Apps-Script project and activate the Gmail API in the corresponding GCP Project
- Execute
make build
to generate the App-Script version of the code - Execute a
clasp push
to upload the source code into your project
If everything went well you now should have your config.js
and an app.js
inside your App-Script project. (In the web-UI they are called .gs
files instead of .js
.)
Now you can execute the executeMailCleanup()
and applyFilterDefinition()
functions to apply your config. If you want a more automated version you can define project triggers inside the Edit
menu for those two functions. For example you can set up a daily cron for them.