imap-cleaner is an open source tool to cleanup and expunge IMAP folders. It is designed to rapidly delete an IMAP folder filtered by dates.
Command | Description |
---|---|
cleanup | delete and expunge the account |
delete | delete messages |
restore | restore deleted messages (not expunged) |
expunge | expunge account mailbox(es) |
list | get a list of account available mailboxes |