Mutt helper tools

I've developed/modified/copied a number of small helper scripts for mutt over the years. These scripts help with things like converting weird mime attachments and converting html mail to text.

I've tried to structure all my filter scripts to use either w3m or lynx for html-to-text conversion. I recommend w3m as it does a better job, but you have to compile and install it yourself. Here's my scripts along with a few from other people, as noted:

  • view-html - convert html to text. Requires w3m or lynx.
  • view-excel - convert excel spreadsheets to html and then to text. Requires xlHtml and w3m or lynx.
  • view-msword - convert word docs to html and then to text. Requires wvWare and w3m or lynx.
  • octet-filter - the default MIME type for data is application/octet-stream. This script takes attachments of this type and uses file(1) on them to try and determine what viewer to use. Modified from original at davep's mutt page.
  • vcard-filter - vcards are electronic business cards. Netscape mailers in particular often attach these to messages. This perl script decodes vcards and prints them as text. From davep's mutt page.
  • tnef2txt - Microsoft mailers occasionally use the transport neutral encoding format, some sort of encapsulation mechanism. This filter will show the details of tnef-encoded attachments. Note that this is the source location, you may be able to find binaries for your platform elsewhere.
  • lyx2txt - a script to convert lyx documents into text. This is a little difficult as lyx won't operate on streams.
  • rtfreader - converts rich text format docs into text. Microsoft docs are occasionally exported in to this format. Note that this is the source, you can find binaries for your platform elsewhere.
  • - a script to call ispell on just the body of a message, not the whole thing. "set" in your .muttrc to use.

Additional programs you will need:

  • w3m - an alternative text web browser. Much better table support than lynx.
  • wvWare - converts microsoft word documents to various formats.
  • lynx - the standard text web browser, so I don't include it here. Use if you don't have w3m, works ok.
  • xlHtml - converts excel spreadsheets into html.

Sites to check out

These are good sources for mutt helper scripts:

And finally, take a look at my sampleDotMailcap for examples on how to use these scripts.

--phil 6/19/01


Our Founder
ToolboxClick to hide/show