# # Brandon Long's sample mailcap for mutt autoview support # http://hoohoo.ncsa.uiuc.edu/~blong/programs/mutt#autoview # # Interactive viewer. Autoview skips this, it looks for the copiousoutput flag text/html; lynx %s # Text Conversion viewer text/html; lynx -dump %s; copiousoutput # Script which converts text/enriched to html and then calls lynx -dump # to convert it to text text/enriched; enriched.sh ; copiousoutput # Interactive separate viewer for X. Uses the RunningX program to determine # if X is running, and if not, mutt will skip this entry. Autoview will # also skip this entry because it lacks the copiousoutput flag image/*; xv %s; test=RunningX # Image to text conversion. No guaruntee that you'll be able to understand # what this generates, but for some images it'll work pretty well image/*; anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | pgmtopbm | pbm toascii ; copiousoutput # Alternate image to text sequenece suggested # by Jeff Epler (jepler@inetnebr.com) # image/*; (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm | pbmtoascii -1x2 ) 2>&1 ; copiousoutput