If 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'








June 21st, 2010 at 9:31 pm
I must say I’ve been searching for some good blog post regarding cleanup old mails in maildir mailbox | GNUSYS Knowledge Base. Searching in Bing I found this amazing blog. After going over this post I’m very happy to say that I have finally found exactly what I was searching for. I will make sure to save blog and come again on a constant basis. Thanks!
June 21st, 2010 at 9:56 pm
I was looking for some good blog post covering this issue . Searching in Yahoo I finally found your site. After reading this post I’m really glad to say that I have a good feeling I found just what I was looking for. I will make sure to remember this website and check it out more often . Thanks!
June 27th, 2010 at 10:19 pm
Thanks so much putting together this blog. It’s packed with great information. This one is going into my bookmarks.