sampleDotMailcap

Sample .mailcap entries

Here are a few example entries from my .mailcap. Among other things, these illustrate how to use my mutt scripts. Put these is ~/.mailcap to use them (assuming you have all the programs).

Note that the 'copiousouput' flag is used by mutt to indicate filters which dump straight text. In combination with auto_view entries in you .muttrc, this will cause mutt to automatically display the textual representation of that particular MIME-type.

Here are the entries which go with my CollectionOfScripts:

 application/ms-rtf;rtfreader %s; copiousoutput
 application/rtf;rtfreader %s; copiousoutput
 application/ms-tnef; tnef2txt %s; copiousoutput
 application/msexcel;view-excel %s;copiousoutput; +nametemplate=%s.xls
 application/msword;view-msword %s; copiousoutput; +nametemplate=%s.doc
 application/octet-stream; octet-filter %s;copiousoutput
 application/vnd.ms-excel;view-excel %s;copiousoutput; +nametemplate=%s.xls
 text/html;view-html %s; copiousoutput; +nametemplate=%s.html
 text/x-vcard; vcard-filter; copiousoutput
 text/lyx; lyx %s
 text/x-lyx; lyx2txt %s 2>/dev/null; copiousoutput

Here are a number of other useful entries:

 application/pdf;pdftotext %s -; copiousoutput
 application/postscript;ps2ascii %s  2>/dev/null; copiousoutput
 application/x-tar; tar -tf - ; copiousoutput;
 application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
 audio/basic;play %s
 audio/midi;playmidi %s
 audio/mp3;freeamp %s
 audio/mpeg;freeamp %s
 audio/wav;play %s
 audio/x-wav; play %s
 audio/x-basic;play %s
 audio/x-midi;playmidi %s
 audio/x-mp3;freeamp %s
 audio/x-mpeg;freeamp %s
 audio/x-mpegurl;freeamp %s
 image/*;display %s 2>&1 >/dev/null
 image/png;display %s 2>&1 >/dev/null
 image/tiff;display %s 2>&1 >/dev/null
 image/x-png;display %s 2>&1 >/dev/null
 image/x-portable-anymap;display %s 2>&1 >/dev/null
 image/x-portable-bitmap;display %s 2>&1 >/dev/null
 image/x-portable-graymap;display %s 2>&1 >/dev/null
 image/x-portable-pixmap;display %s 2>&1 >/dev/null
 image/x-xpixmap;display %s 2>&1 >/dev/null
 image/x-xwindowdump;display %s 2>&1 >/dev/null
 text/sgml; sgml2txt %s; copiousoutput
 video/mpeg;xine -s %s 2>&1 >/dev/null
 video/quicktime;xanim +Ae +Zpe +Ae +Ss2 %s 2>&1 > /dev/null
 video/x-msvideo;xine -s %s 2>&1 >/dev/null

--phil 6/18/01



Our Founder
ToolboxClick to hide/show