# 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.
#
##############################  TEXTE  ####################################
#
text/enriched; \
        shownonascii iso-8859-1 -e richtext -e -p %s; \
	copiousoutput; \
	print= printmim %t %s

text/plain; \
        shownonascii iso-8859-1 %s; \
        test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = iso-8859-1; \
        copiousoutput; \
        print= printmim %t %s

text/richtext; \
        shownonascii iso-8859-1 -e richtext -p %s; \
        test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`"  = iso-8859-1; \
        copiousoutput

# The following mailcap line intentionally commented out.
#
# While it may make it easy to launch Mosaic on a document from mailtool, it 
# makes other software, such as lynx and I believe Netscape, break.  This is 
# due to the fact that they use that data type when retrieving HTML documents.
#
# text/x-html; mosaic %s
#
##############################  AUDIO  ####################################
#
#  If auplay is not available on your system, then you can try substituting
#  audioplay. This is certainly correct on Solaris 2.x systems.

audio/basic; \
        auplay %s;\
        nametemplate="%s.au"; \
        compose=audiocompose %s; \
        edit=audiocompose %s;\
        description="a sound"

#  If auplay is not available on your system, then you can try substituting
#  audiotool.

audio/*; \
	auedit %s
#
##############################  IMAGE  ####################################
#
image/gif; \
        showpicture %s; \
        nametemplate="%s.gif"; \
        compose="xwd -frame | xwdtopnm | ppmtogif > %s\; exit 0"; \
	print= printmim %t %s; \
        description="a GIF image"

image/jpeg; \
        showpicture %s; \
        nametemplate="%s.jpeg"; \
	print= printmim %t %s; \
        description="a JPEG image"

image/x-xwd; \
        showpicture %s; \
	print= printmim %t %s; \
        description="a X-XWD image"

image/*; \
	showpicture %s
#
##############################  VIDEO  ####################################
#
# This maps FLI, FLC video data to the viewer 'xanim'.
video/fli; xanim %s

# This maps MPEG video data to the viewer 'mpeg_play'.
video/mpeg; mpeg_play %s

# This maps all types of video *other than MPEG* to the viewer
# 'genericmovie'.
video/*; xanim %s
#
##############################  APPLICATION  #################################
#
application/postscript; \
        ghostview -magstep -1 -a4 %s ; \
        description="a PostScript document";\
        nametemplate="%s.ps"; \
	print= printmim %t %s; \
        compose="getfilename Postscript %s"
        
application/x-tex; \
        latex2ghostview %s;\
        description="a LaTeX document";\
        nametemplate="%s.tex"

application/x-dvi; xdvi %s

# application/safe-tcl; swish -safe -messaging -f %s

application/applefile; \
	rcvAppleSingle %s; \
	compose="sndAppleSingle %s"; \
	description="a Mac format AppleSingle file"

#  Be sure to adjust this entry to the language of your choice.

application/x-framemaker; /usr/local/frame/bin/imakerfrench -f %s; \
	compose= /usr/local/frame/bin/imakerfrench -f %s; \
	description="FrameMaker document"

#  Be sure to adjust this entry to the language of your choice.

application/x-mif; /usr/local/frame/bin/imakerfrench -f %s; \
	compose= /usr/local/frame/bin/imakerfrench -f %s; \
	description="FrameMaker document"
#
##############################  MESSAGE  ####################################
#

message/external-body; \
	printmim %t %s %{access-type} %{site} %{name} %{directory}; \
	print= printmim %t %s %{access-type} %{site} %{name} %{directory}; \
	description="Une reference a un fichier eloigne!"

message/partial; \
	showpartial %s %{id} %{number} %{total}

#
##############################  MULTIPART  ##################################
#
#multipart/enabled-mail; show-enabled %F
#
##############################################################################
# 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-movie; movieplayer %s; compose=moviemaker %s; \
#       description="Movie"; \
#        x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
#application/x-inventor; examine %s; description="Inventor file"; \
#        x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
#application/x-zm-fax; zfax %s; description="Z-Fax document"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/fax.xbm"
#application/x-showcase; showcase %s; compose=showcase %s; \
#	description="Showcase document"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/showcase.xbm"
#application/x-jot; jot %s; compose=jot %s; description="Jot document"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/jot.xbm"
#image/x-sgi; ipaste %s; compose=imgworks %s; description="SGI image"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
#audio/x-aiff; playaiff %s; compose=recordaiff -t 60 %s;	\
#	description="AIFF Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.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"
#application/x-island-write; IslandWrite %s; compose=IslandWrite %s; \
#	description="IslandWrite document"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/islwrite.xbm"
#application/x-island-draw; IslandDraw %s; compose=IslandDraw %s; \
#	description="IslandDraw document"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/isldraw.xbm"
#application/x-island-paint; IslandPaint %s; compose=IslandPaint %s; \
#	description="IslandPaint document"; \
#	x11-bitmap="/usr/lib/Zmail/bitmaps/islpaint.xbm"
#application/x-framemaker; maker -f %s; compose=maker -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"
# Old Z-mail format
#x-zm-multipart: sun-to-mime %s



