azu / gmail-old-notification-remover

Google App Script that remove older mails from Gmail.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gmail-old-notification-remover

This Google App Script for removing older mails from Gmail.

  • Remove mails that are matched label:notification -is:starred -is:important older_than:730d

Install

yarn install

clasp

Login with Google App Script

yarn clasp login

Create new App Script

yarn clasp create

Change rootDir of .clasp.json:

{
  "scriptId": "<id>",
  "rootDir": "build"
}

deploy

yarn run deploy

Usage

Run cleanupMail function in Google App script.

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

About

Google App Script that remove older mails from Gmail.

License:MIT License


Languages

Language:TypeScript 78.4%Language:JavaScript 20.0%Language:Shell 1.6%