imap-cleaner
Command-line utility for remove old emails from an email inbox over imap.
Last updated 3 months ago by ray.hammond77 .
ISC · Original npm · Tarball · package.json
$ cnpm install imap-cleaner 
SYNC missed versions from official npm registry.

imap-cleaner

Node.js CI

NodeJS command line utility for removing old emails from an IMAP server.

Installing

npm install -g imap-cleaner

Running

Usage: imap-cleaner --deleteOlderThan <num> --max <num>

  1. 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
}
  1. 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

Contributors

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.

License

MIT

Current Tags

  • 1.0.4                                ...           latest (3 months ago)

5 Versions

  • 1.0.4                                ...           3 months ago
  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |