General-Purpose Mail Package
|Official GNU Software|
For each file given in its command line,
to autodetect its type and invoke an appropriate file viewer.
To detect the file type,
mimeview uses mime.types
file. This file is a part of Common UNIX Printing System,
mime.types in mime.types man page. By default
mimeview searches for mime.types in
$prefix/etc/cups/4, however its exact location can be specified
at runtime as well (see --mimetypes below).
Once file MIME type is successfully determined,
consults mailcap files in order to determine how to display
the file. It does so essentially in the same manner as
metamail utility, i.e., it scans all files specified
METAMAIL environment variable until it finds an entry
describing the desired file format or until the list of files is
METAMAIL variable is not set,
uses the following default path instead:
$HOME/.mailcap:/usr/local/etc/mailcap:\ /usr/etc/mailcap:/etc/mailcap:\ /etc/mail/mailcap:/usr/public/lib/mailcap
The exact location is determined at
configuration time by setting environment variable
DEFAULT_CUPS_CONFDIR. On most sites running
should be recommended.
This document was generated on August 5, 2021 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.