Skip to content

Script for cleaning up and archiving mails in Maildir folders based on arival date

License

Notifications You must be signed in to change notification settings

ehaupt/cleanup-maildir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cleanup-maildir

Script for cleaning up and archiving mails in Maildir folders based on arrival date. This script was originally found here.

The version of cleanup-maildir.py in this repo is ported to Python 3.8 by @mhyllander and uses standard modules to interface with Maildir folders:

  • email
  • mailbox
  • datetime

In addition, you need to install the pygraph module. The version that is installed by pip3 from PyPI is currently not compatible with Python 3. Instead you should install the Python 3-compatible version directly from the git repo:

pip3 install git+https://github.com/jciskey/pygraph

The command options and arguments remain the same, except that the deprecated "--mode" option has been removed. Aside from this it is a drop-in replacement for the Python 2.7 version.

About

Script for cleaning up and archiving mails in Maildir folders based on arival date

Resources

License

Stars

Watchers

Forks

Packages

No packages published