Skip to content

Instantly share code, notes, and snippets.

@grince
grince / cleanup-maildir.py
Last active September 10, 2015 05:27 — forked from fwenzel/cleanup-maildir.py
A script for cleaning up mails in Maildir folders
#!/usr/bin/python -tt
"""
USAGE
cleanup-maildir [OPTION].. COMMAND FOLDERNAME..
DESCRIPTION
Cleans up old messages in FOLDERNAME; the exact action taken
depends on COMMAND. (See next section.)
Note that FOLDERNAME is a name such as 'Drafts', and the