My Mutt Stuff

Here's a collection of Mutt stuff I have written. Mutt is, of course, a unix terminal-based email reader -- the best there is, in my opinion.

Mutt add-ons

An elm-style checkalias command-line tool for Mutt, coded in perl. Will look in your .muttrc files for all the alias statements, and print the name and address for each alias given (if it exists). There is no documentation apart from brief usage instructions at the top of the script and the usual -h, but it's simple enough to use that this should be enough.

A tool for pretty-printing the Received headers in emails. Originally by Chris Garrigues, quite heavily modified by me. I don't know the license for this script (the script doesn't say) and my attempts to contact the author have failed, so I don't know if I'm supposed to give this script away, but here it is.

I use the following lines in my .muttrc to make use of this script with the "+"-key:

macro index + <pipe-message><enter>
macro pager + <pipe-message><enter>

Mutt patches


For Mutt 1.1.2. Reformat the timestamps in Received headers by converting them into local times and a user-specified format. The conversion uses the format specified in a new $received_format variable. This value can begin with ! to ignore the current locale. To turn off date reformatting, use: set received_format=""

I've stopped using this patch myself in favour of just viewing the headers with, above.

Other email stuff

An email advertisement filter, meant to be used from a mail filtering tool such as procmail or maildrop. This is not a SPAM filter, but rather a very simple perl script that will filter out adverts from email that have other content that you do want to read. Currently filtered advert types are egroups and freshmeat adverts. Since the advertisement formats might change at any time, this script might not work in the future, although it does work at the time of writing. The link above reads my live copy of, so it's always the same that I'm currently using myself. New filters may get added from time to time.

Procmail log parser. Displays into which folders and how many messages have been delivered. Also supports "aliasing" so you can do: procmailcount -d "$MAIL=INBOX" To make your /var/spool/whatever folder appear as "INBOX", etc. Available options are documented in the top of the file, no other documentation. The link above links to my live copy of the script.
I personally use this command: procmailcount -t -n -d $MAIL=INBOX procmail.log (The -d argument is shortened, it's very long actually...)

Back to my home page