Language Selection

English French German Italian Portuguese Spanish

Cleanup Maildir folders (archive/delete old mails)

Filed under
HowTos

Maildir saves each mail in a separate file, it is much easier than it used to be to manipulate the mails. Everyone can write some simple script to do some cleanup based on its needs. A while ago I have stumbled across this python script that does most of the things I needed to cleanup maildir folders.

What features was I looking for?

  • ability to archive or delete older mails (configurable age of mails)

  • archiving old mails in Maildir format, so they can be still used from the email client.
  • usage that can be automated in a cronjob.

cleanup-maildir has all the features that I needed (and some others). So I would recommend this little script for a quick solution to cleanup maildirs. Here are some useful options:

Full Story.

More in Tux Machines

Leftovers: Software

today's leftovers

today's howtos

Leftovers: Gaming