NodeJS command line utility for removing old emails from an IMAP server.
npm install -g imap-cleaner
Usage: imap-cleaner --deleteOlderThan --max
- Create the config files with your IMAP server details (within ./config/connection.js)
{
"user": "<User name>",
"password": "<Password>",
"host": "<IMAP Server address>",
"port": 993,
"tls": true
}
- Run the command, only consider the ones with a date/time older than 400 days. Limit the remove to 20 (for speed and safety)
node index.js --deleteOlderThan 400 --max 20
One-man-band at the moment. Contact me at twitter on @rayhammond, or, via my blog here http://geeksretreat.wordpress.com if you are interest in getting involved.
MIT