#MAILCAP(4)                                             MAILCAP(4)
#
#NAME
#       mailcap - metamail capabilities file
#
#DESCRIPTION
#       The mailcap file is read by the metamail program to deter-
#       mine how to display non-text at the local site.

audio/*; get %s > /dev/dsp

image/*; view %s
text/html; browse %s

application/postscript;  /.us/Ghostscript/command/gsnd %s
#application/rtf                rtf
#application/x-tex              tex
application/x-troff;  man2html > /.tm/metabrowse ; browse /.tm/metabrowse


#audio/x-aiff                   aif aiff aifc
#audio/x-wav                    wav
#image/gif                      gif
#image/ief                      ief
#image/jpeg                     jpeg jpg jpe


# The following all appear AFTER the corresponding READING entries, and 
# are for use in messages composition, e.g. in the "mailto" program
# In the following lines, the exit 0 junk is necessary because xwd 
# doesn't always exit with a valid exit status!
# For sites with current (X11R5) pbm utilities

# before replacing lpr with it in the following line, because PostScript
# can be an enormous security hole.  It is RELATIVELY harmless
# when sent to the printer...
#application/postscript ; lpr %s \; echo SENT FILE TO PRINTER ; description="A Postscript File";\
#	compose="getfilename Postscript %s"


# The following gives rudimentary capability for receiving 
# text mail in the ISO-8859-1 character set, which covers many European 
# languages, and the ISO-8859-8 character set, which includes Hebrew
# Note that the pipe to tr ensures that the "ISO" is case-insensitive.
#text/richtext; shownonascii iso-8859-8 -e richtext -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-8; copiousoutput
#text/richtext; shownonascii iso-8859-1 -e richtext -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-1; copiousoutput
#text/plain; shownonascii iso-8859-8 %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-8; copiousoutput
#text/plain; shownonascii iso-8859-1 %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-1; copiousoutput
#text/enriched; shownonascii iso-8859-8 -e richtext -e -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-8; copiousoutput
#text/enriched; shownonascii iso-8859-1 -e richtext -e -p %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-1; copiousoutput

# The following displays Japanese text at sites where the "kterm" program is installed:
#text/plain; kterm -geometry +0+0  -e more %s /dev/null; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-2022-jp


#text/richtext; richtext %s; copiousoutput

# A common problem with the mailcap mechanism is getting differential 
# behavior from different programs.  This problem is compounded by the fact 
# that some programs, notably Mosaic, do not implement the "test" clause in 
# mailcap files.  The following two mailcap entries should give you a model 
# for a hack that will allow you to get differential behavior from Mosaic and 
# metamail in spite of this fact.  It exploits the fact that metamail always 
# sets the MM_MAILER variable (if only to "unknown") while Mosaic does not.
#
# foo/bar; echo mosaic; test=test "$MM_MAILER" = ""
# foo/bar; echo not mosaic

