deletemail is a non-interactive tool for removing email which is older than a configurable number of days from one or more IMAP mailboxes. By default, email which is not marked as seen on the server will not be deleted. If, for example, fetchmail is used for receiving email from an IMAP server, deletemail might be useful, since fetchmail deletes email 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 email. 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: 2020/08/21 07:03:01 $ by Holger Weiß