Skip to content
/ trasher Public

Using IMAP to connect to Gmail and clean Trash folder

License

Notifications You must be signed in to change notification settings

a1626/trasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a small bot which uses IMAP to connect to Gmail and clean the Trash folder repeatedly.

Inspiration

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.

Description

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.

Structure of config file

 {
   "username": "",
   "password": ""
 }

Setup and Key points

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 and security checks are missing in this app so, please don't use it directly in your production code.

License

MIT

About

Using IMAP to connect to Gmail and clean Trash folder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published