Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Code to go with

First run to fill / update the emails database. Warning: this will take a while with a large inbox, due to the Gmail API being limited in its list() and get() calls (feel free to let me know if there's a way to speed this up).

Next, use the to start cleaning.

You'll need to create a Gmail API in your Google API console and obtain the client_secret JSON file.