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.


Please see the README file for quick installation and usage instructions.


Stable Release

Old Releases



Feel free to drop me an e-mail if you encounter any problems with or have any comments on deletemail.

Valid XHTML 1.1!  Valid CSS!  Powered by Debian GNU/Linux

Last modified: $Date: 2013/01/28 21:32:16 $ by Holger Weiß