cleanup old mails in maildir mailbox
Friday, January 2nd, 2009If we want to selectively delete messages from a maildir format mail account the following python script comes handy
============
http://svn.houseofnate.net/unix-tools/trunk/cleanup-maildir
============
An example usage i had for deleting messages older than 7 days in the Spam folder is
dir=”/the/path/to/my/maildir”
cleanup-maildir –maildir-root=$dir –age=7 delete ‘Spam’