User Tools

Site Tools


mailcap

mailcap is used for configuring applicatons to display MIME content. This is an example of a .mutt/mailcap file that has been tested on SLUUG systems. There are many commented out alternate lines for commands that are probably not available, but are included for reference.

# HTML
text/html;                  lynx --force_html %s
#text/html;                  lynx --force_html --dump %s; copiousoutput; nametemplate=%s.html
text/*;                     view

# Images
#image/*;                    xv %s
#image/*;                    display %s
#image/*;                    anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | pgmtopbm | pbmtoascii ; copiousoutput

# Documents
#application/pdf;            xpdf %s
#application/pdf;            pdftotext %s; copiousoutput
#application/postscript;     gv %s
#application/postscript;     ps2ascii %s; copiousoutput
mailcap.txt · Last modified: 2007/08/22 23:06 by 4.245.72.1