The Mutt E-Mail Client : Mutt's MIME Support : MIME Viewer configuration with `mailcap`
Previous: MIME Type configuration with `mime.types`
Next: The Basics of the mailcap file

## 5.3. MIME Viewer configuration with `mailcap`

Mutt supports RFC 1524 MIME Configuration, in particular the Unix specific format specified in Appendix A of RFC 1524. This file format is commonly referred to as the mailcap format. Many MIME compliant programs utilize the mailcap format, allowing you to specify handling for all MIME types in one place for all programs. Programs known to use this format include Netscape, XMosaic, lynx and metamail.

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

> `

>     ${HOME}/.mailcap:/usr/local/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap

> `

where `$HOME` is your home directory.

In particular, the metamail distribution will install a mailcap file, usually as `/usr/local/etc/mailcap`, which contains some baseline entries.

### 5.3.1. The Basics of the mailcap file

### 5.3.2. Secure use of mailcap

### 5.3.3. Advanced mailcap Usage

  5.3.3.1. Optional Fields
  5.3.3.2. Search Order
  5.3.3.3. Command Expansion

### 5.3.4. Example mailcap files

The Mutt E-Mail Client : Mutt's MIME Support : MIME Viewer configuration with `mailcap`
Previous: MIME Type configuration with `mime.types`
Next: The Basics of the mailcap file