This is a small bot which uses IMAP to connect to Gmail and clean the Trash folder repeatedly.
I wanted to create a small bot to clean my trash
folder. My first attempt was to build a shell script which do this for me. Even though i was able to do it on terminal but things were not working on a script file. Then after suggestion from someone of SO I decided to drop that idea and look for someother language to achieve my goals.
This project uses node-imap to connect to Gmail using IMAP. Even though i've performed only delete task you can do a lot of other things also using the library.
{
"username": "",
"password": ""
}
Please keep following points in mind while using the project
- This project uses some of ES6 features, like destructuring so please use node version which supports ES6 features.
- In order to use it you'll have to enable Allow less secure apps in Gmail.
- This code is not production ready. A lot of key production ready features like
error handling
andsecurity checks
are missing in this app so, please don't use it directly in your production code.