1
0
Fork 0
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
Find a file
dependabot[bot] 30440e7504
Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 20:57:39 +00:00
src Fix length of dict 2018-10-21 12:49:25 +02:00
.claspignore Cleanup repo files 2018-10-21 01:11:39 +02:00
.gitignore Cleanup repo files 2018-10-21 01:11:39 +02:00
appsscript.json Advance development 2018-10-21 01:02:53 +02:00
config.sample.js Add sample config 2018-10-21 01:09:59 +02:00
LICENSE Add META 2018-10-21 01:20:49 +02:00
Makefile Document build in a makefile 2018-10-22 14:38:54 +02:00
package-lock.json Bump lodash from 4.17.19 to 4.17.21 2021-05-07 20:57:39 +00:00
package.json npm update / audit fix / dedupe 2020-08-02 02:24:44 +02:00
README.md Document build in a makefile 2018-10-22 14:38:54 +02:00

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 the config.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.