Categories
geek mystuff n3wjack opensource software tools

inbox clean up tool update

A while ago, I wrote a command line tool to clean up any IMAP inbox, and delete the oldest emails if the inbox gets over a certain amount of mails.
This is handy and has been doing its thing for a long time, but recently I wanted to extend that, and also delete emails in a specific timeframe. Let’s say between 23h and 6h of each day.

Say hello to v2.0 of the IMAP Cleanup tool, which now has a slightly modified command line, where you can specify if you want to delete using the count, or if you want to use time as the criteria.

It looks like this if you want ot use count (without the login credentials):

.\ImapCleanup.exe count --keep 500

or to use time:

.\ImapCleanup.exe time --from 23:00 --to 6:00

It’s pretty fast in doing its job, so you can run it a number of times sequentially for more specific cleanup jobs.

You can find all the details on how to set it up and use it on the Github page.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.