Package deletemail

A non-interactive tool for deleting mails

http://www.jhweiss.de/software/deletemail.html

deletemail is a non-interactive tool for removing mail which is older
than a configurable number of days from one or more IMAP mailboxes. By
default, mail which is not marked as seen on the server will not be
deleted. If, for example, fetchmail is used for receiving mail from an
IMAP server, deletemail might be useful, since fetchmail deletes mail
either immediately or not at all. Thus, you could use fetchmails keep
option (so that fetchmail never deletes anything) and let deletemail
handle the removal of mail. Currently, the IMAP4 and IMAP4rev1 protocols
are supported, optionally using SSL/TLS for secure IMAP connections.

General Commands (Section 1)
deletemail
deletemail is a non-interactive tool for deleting mail which is older than a configurable number of days from one or more IMAP mailboxes. By default, mail which...