A program to delete trash emails based on keyword and label filters.
- Install Node.js & npm
- Create a Google Cloud Platform project with the API enabled.
- Create Authorization credentials for a desktop application and download
credentials.json
file in the config directory. - Run
npm install
in the project directory. - Rename
keywords.json.sample
file in the config directory tokeywords.json
and update its contents. - Run
node .
Usage: trash-cleaner [options]
Options:
-V, --version output the version number
-d, --debug output extra debugging info
-c, --configDirPath <path> the path to config directory (default: "config")
-s, --service <service> the email service to use (choices: "gmail", "outlook", default: "gmail")
-h, --help display help for command