Attachments appear as follows:
<screen>
-- 1 [text/plain, 7bit, 1K] /tmp/mutt-euler-8082-0 <no description>
- 2 [applica/x-gunzip, base64, 422K] ~/src/mutt-0.85.tar.gz <no description>
+- 1 [text/plain, 7bit, 1K] /tmp/mutt-euler-8082-0 <no description>
+ 2 [applica/x-gunzip, base64, 422K] ~/src/mutt-0.85.tar.gz <no description>
</screen>
</para>
<para>
In order to handle various MIME types that Mutt can not handle
internally, Mutt parses a series of external configuration files to
-find an external handler. The default search string for these files
-is a colon delimited list set to
+find an external handler. The default search string for these files
+is a colon delimited list containing the following files:
-<screen>
-${HOME}/.mailcap:/usr/local/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap
-</screen>
+<orderedlist>
+<listitem><para><literal>$HOME/.mailcap</literal></para></listitem>
+<listitem><para><literal>$PKGDATADIR/mailcap</literal></para></listitem>
+<listitem><para><literal>$SYSCONFDIR/mailcap</literal></para></listitem>
+<listitem><para><literal>/etc/mailcap</literal></para></listitem>
+<listitem><para><literal>/usr/etc/mailcap</literal></para></listitem>
+<listitem><para><literal>/usr/local/etc/mailcap</literal></para></listitem>
+</orderedlist>
+
+where <literal>$HOME</literal> is your home directory. The
+<literal>$PKGDATADIR</literal> and the
+<literal>$SYSCONFDIR</literal> directories depend on where mutt
+is installed: the former is the default for shared data, the
+latter for system configuration files.
+</para>
-where <literal>$HOME</literal> is your home directory.
+<para>
+The default search path can be obtained by running the following
+command:
</para>
+<screen>
+mutt -nF /dev/null -Q mailcap_path
+</screen>
+
<para>
In particular, the metamail distribution will install a mailcap file,
usually as <literal>/usr/local/etc/mailcap</literal>, which contains some baseline
For instance, if you set auto_view to:
<screen>
-auto_view text/html application/x-gunzip application/postscript image/gif application/x-tar-gz
+auto_view text/html application/x-gunzip \
+ application/postscript image/gif application/x-tar-gz
</screen>
</para>
<screen>
text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html
-image/*; anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | pgmtopbm | pbmtoascii ; copiousoutput
+image/*; anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | \
+ pgmtopbm | pbmtoascii ; copiousoutput
application/x-gunzip; gzcat; copiousoutput
application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
application/postscript; ps2ascii %s; copiousoutput