cleanup old mails in maildir mailbox

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'

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags: , ,

3 Responses to “cleanup old mails in maildir mailbox”

  1. ab circle Says:

    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! :-)

  2. ab circle reviews Says:

    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! :-)

  3. Jesus Freeburn Says:

    Thanks so much putting together this blog. It’s packed with great information. This one is going into my bookmarks.

Leave a Reply