# Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
# 
# Permission to use, copy, modify, and distribute this material 
# for any purpose and without fee is hereby granted, provided 
# that the above copyright notice and this permission notice 
# appear in all copies, and that the name of Bellcore not be 
# used in advertising or publicity pertaining to this 
# material without the specific, prior written permission 
# of an authorized representative of Bellcore.  BELLCORE 
# MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
# OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
# WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
#
# Mailcap file for MediaMail
#
# Note that users may override or extend this with a .mailcap
# file in their own directory.  However, there is NO NEED
# for them to copy entries from this file, as metamail will
# pick up entries from both the system and personal mailcap files.

message/partial; showpartial %s %{id} %{number} %{total}
message/external-body; showexternal %s %{access-type} %{name} %{site} %{directory} %{mode} %{server}; \
	needsterminal; composetyped = extcompose %s; \
	description="A reference to data stored in an external location"

# You can alter the above entry to only use certain access-types by
# adding a clause like the following before the "description=" line:
#	test=test %{access-type}  = mail-server;  \

# The following give rudimentary capabilities to read old andrew format
# even to non-Andrew sites, since "ezview" comes with metamail.
x-be2;	ezview %s ; copiousoutput
application/andrew-inset;	ezview %s ; copiousoutput; edit=ez -d %s; compose="ez -d %s"; description="An Andrew inset/document"

# 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
# If you have Andrew at your site, you MIGHT prefer to replace the
# above line with the following one, but probably won't because
# ez takes so long to start up.
# text/richtext; richtoatk < %s | ezview - ; copiousoutput
text/enriched; richtext -e %s; copiousoutput

# The following is used for distributing metamail patches
# It should probably be used only by those administering metamail at a site.
# You will need to replace "source-tree-root" with the real root of your
# actual metamail source tree.
# You can also modify this line to get metamail patches from some trusted
# server other than thumper, if there is one -- man patch-metamail" for help.
application/x-metamail-patch; cat %s > /dev/null \; patch-metamail source-tree-root %{patchnumber}; needsterminal

# The following is for support of MacMIME, especially those
# the Columbia AppleTalk package (CAP) installed.
# For more info about MacMIME, send email to paf@nada.kth.se
#
# If you don't have CAP, and haven't changed rcvAppleSingle
# or sndAppleSingle, you should comment out this line.
application/applefile; rcvAppleSingle %s; compose="sndAppleSingle %s";description="An Apple Macintosh file in AppleSingle format"

#
# imgview currently can view SGI, TIFF, JFIF/JPEG, and GIF formats.
#
image/x-rgb; imgview -nofork %s; compose=imgworks %s; \
	description="SGI image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/x-sgi-image; imgview -nofork %s; compose=imgworks %s; \
	description="SGI image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/x-bitmap; bitmap %s; description="X11 bitmap"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
image/x-xpm1; olpixmap %s; description="OL pixmap"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
image/tiff; imgview -nofork %s; compose=imgworks %s; description="TIFF image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/gif; imgview -nofork %s; compose=imgworks %s; description="GIF image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/jpeg; imgview -nofork %s; compose=imgworks %s; description="JFIF image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/jpg; imgview -nofork %s; compose=imgworks %s; description="JFIF image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/x-photo-cd; imgview -nofork %s; compose=imgworks %s; \
	description="Photo CD image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
image/x-xwd; showpicture %s; \
	description="An X11 window image dump in X-XWD format"
image/*; imgview -nofork %s; compose=imgworks %s; description="basic image"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"

x-music/x-midi;  soundplayer -nofork -nounique %s; \
	description="Standard MIDI Music"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"

audio/x-aiff; soundplayer -nofork -nounique %s; compose=soundeditor %s;	\
	description="AIFF Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
audio/x-aifc; soundplayer -nofork -nounique %s; compose=soundeditor %s;	\
	description="AIFC Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
audio/x-next; soundplayer -nofork -nounique %s; compose=soundeditor %s;	\
	description="NeXT Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
audio/x-wav; soundplayer -nofork -nounique %s; compose=soundeditor %s;	\
	description="WAVE Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
audio/x-mpeg; soundplayer -nofork -nounique %s; \
        description="MPEG Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
audio/audio/x-pn-realaudio; raplayer %s; \
	description="RealAudio "; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
audio/basic; soundplayer -nofork -nounique %s;	\
	description="Audio"
audio/*; soundplayer -nofork -nounique %s
#audio/basic; sfplay -inputraw mulaw channels 1 rate 8000 end %s; \
#	description="Audio"
#
#
# Movieplayer understands SGI, QuickTime, MPEG Video, and MPEG Systems
#
video/x-sgi-movie; movieplayer -v -nofork %s; compose=moviemaker %s; \
	description="SGI Movie"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
video/mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
	description="MPEG Movie"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
video/x-mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
	description="MPEG Movie"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
video/x-mpeg-system; movieplayer -v -nofork %s; compose=moviemaker %s; \
	description="MPEG Movie"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
video/quicktime; movieplayer -v -nofork %s; compose=moviemaker %s; \
	description="QuickTime Movie"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
#
application/x-xdma; /usr/bin/X11/xnetview %s; \
	description="StreamWorks Viewer"
application/x-enterlicense; /usr/etc/enterlicense %s; \
	description="Software Licensing document"
application/x-install; /usr/sbin/SoftwareManager -F %s \
	-Vauto_inst_new:F -Vauto_inst_upgrades:F -Vbackground:F ; \
	description="Automatic inst installation"
application/x-showcase; showcase -f %s; \
	compose=showcase %s; description="Showcase document"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/showcase.xbm"
application/x-framemaker; (/usr/frame/bin/fmclient -f %s); \
	compose=(/usr/frame/bin/fmclient -f %s); \
	description="FrameMaker document"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/frame.xbm"
application/x-wingz; Wingz %s; compose=Wingz %s; \
	description="Wingz document"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
application/x-SYLK; Wingz %s; compose=Wingz %s; \
	description="Spreadsheet in SYLK format"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
graphics/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
	description="Inventor file"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
	description="Inventor file"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/postscript; /usr/bin/X11/xpsview %s; \
	description="PostScript Language"
application/x-annotator; /usr/sbin/annotator -v -r %s; \
	description="IRIS Annotator file"; compose=/usr/sbin/annotator %s; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/x-tardist; tardist %s; description="SGI inst tar distribution"
application/pdf; acroread %s; description="Adobe Acrobat document"
application/x-iconbook; /usr/sbin/iconbook; \
	description="IconBook"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/x-inperson; /usr/lib/InPerson/inpview -wbfile %s; \
	description="InPerson Whiteboard file"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/x-ppages; /usr/sbin/peoplepages; \
	description="InPerson PeoplePages"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/x-dirview; /usr/sbin/dirview `cat %s`; \
	description="desktopManager Directory View"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
application/x-rapidapp; /usr/sbin/rapidapp %s; \
	description="RapidApp file"
application/x-form; /usr/local/bin/form %s; \
	description="Form"


x-world/x-vrml;  /usr/sbin/webspace -remote %s -URL %u ; \
	description="VRML document"

default; cat %s; copiousoutput
application/x-licensemgr; /usr/etc/LicenseManager %s; \
	description="Software License Installation"

# Special handling for decoding TAKE messages from P-Tools
text/x-take-message; /usr/local/bin/showtake %s; \
	description="TAKE Message" ; \
	notes="Added for TakeDiffs, 95.07.18 -- jjt@engr, 3-3988"


# Do an rcsdiff given a file name and two revision numbers
application/x-rcsdiff; /usr/local/bin/dorcsdiff %s ; \
	description="Invoke rcsdiff" ; \
	notes="Added for TakeDiffs, 95.07.18 -- jjt@engr, 3-3988"


# The following is for interoperability with Z-Mail version 3.0 and beyond.
# To enable this compatibility, uncomment all of the following lines.
#
# For more info about Z-Mail, send email to info@z-code.com
#
application/x-zm-fax; zfax %s; description="Z-Fax document"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/fax.xbm"
application/x-jot; jot -f %s; compose=jot -f %s; description="Jot document"; \
	x11-bitmap="/usr/lib/Zmail/bitmaps/jot.xbm"

# Old Z-mail format
x-zm-multipart; sun-to-mime %s

