home *** CD-ROM | disk | FTP | other *** search
- # 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 Netscape
- #
- # Users may override or extend this with a .mailcap file in
- # their own directory. Netscape will search both mailcap
- # files looking for a match.
- #
- # imgview currently can view SGI, TIFF, JFIF/JPEG, and GIF formats.
- # Netscape has builtin viewing support for GIF and JFIF and if the
- # mailcap entries for these are commented out, it will display those
- # images as a new page when downloaded. However, for consistency
- # the default is to use the external viewer.
- #
- # First a note about syntax:
- # The first token in a configuration line represents a mime type.
- # A mime type is of the form "SubGroup/Item" and either token
- # can be replaced by the wildcard character "*"
-
- # the second token is the command that you would run
- # when the specified mime type is encountered. An example
- # would be "xv %s" where %s will be replaced by a filename
-
- # remaining tokens represent name value pairs.
-
- # the "test=" pair invokes the test command
- # specified and checks the UNIX shell return code to see if the
- # test passed. If the test passes the mime mapping is made, otherwise
- # the mapping is not made.
-
- # the "stream-buffer-size=" pair tells the application
- # to use a popen command to invoke the program specified and to
- # pipe all data into the command. Only programs that can handle
- # piped input can use this method. When this method is used
- # a "%s" should not be included in the command. You should
- # make sure that the program you wish to use can accept piped
- # data by trying something like this before using it:
- # cat "YOUR_DATA_FILE_HERE" | COMMAND_TO_TEST
-
- # You may continue lines by using the backslash character "\"
-
- 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"
-
- 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"
- #
- # use this preferentially to do streaming audio if you have
- # the playulaw program
- #audio/basic; playulaw; stream-buffer-size=2000
- #
- # otherwise, if you don't have playulaw, use this
- audio/basic; soundplayer -nofork -nounique %s
-
- # here is an interesting command that enables you to sit
- # in front of a different UNIX machine than the one where
- # you are running the Netscape Navigator and still here audio.
- #
- #audio/basic; rsh YOUR_HOST_HERE /usr/local/bin/playulaw; \
- # test=test `hostname`x != YOUR_HOST_HEREx; stream-buffer-size=2000
-
- audio/*; soundplayer -nofork -nounique %s
- #
- #
- # 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-enterlicense; /usr/etc/enterlicense %s; \
- description="Software Licensing document"
- application/x-install; /usr/sbin/SoftwareManager -F %s; \
- description="Automatic inst installation"
- application/x-showcase; showcase -f -v %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=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-sh; sh %s; description="Bourne shell"
- application/x-csh; csh %s; description="C shell"
-
-
- x-world/x-vrml; /usr/sbin/webspace -remote %s -URL %u ; \
- description="VRML document"
-
- default; cat %s; copiousoutput
-