This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
miscellany / mailfixer
mailfixer/README
======================================================================== mailfixer Copyright 2008 Ben Bleything <ben@bleything.net> Provided under the BSD license. ======================================================================== mailfixer is meant to analyze the contents of a Maildir to give you some idea of exactly what the hell all those thousands of messages are. I originally wrote it because I'd been running with a catchall address for 9 years and it was time to delete all that mail. It's pretty easy to use... first, run finder: ./finder.rb /path/to/your/maildir That'll look at your disk, find a bunch of messages, and stick them in your database. It'll also remove messages that you've since deleted. Next, run the analyzer: ./analyzer.rb This does a couple of things: 1) loads the message into a TMail mail object for easy header extraction 2) puts the to, cc, delivered-to, and x-apparently-to headers in the database 3) builds a mapping of address <-> header membership in the edges table. This lets you (for instance) determine that an address is junk and delete ever piece of mail sent to that address. IMPORTANT NOTE! There are places in the code that are specific to my email addresses... you'll probably want to search through for 'bleything.net' and replace it with something that makes sense for you. You probably want to read over the rest of the code too... there's not that much of it.








