The Mutt E-Mail Client : Mutt's MIME Support : MIME Type configuration with mime.types
Previous: The Compose Menu
Next: MIME Viewer configuration with mailcap

5.2. MIME Type configuration with mime.types

When you add an attachment to your mail message, Mutt searches your personal mime.types file at ${HOME}/.mime.types, and then the system mime.types file at /usr/local/share/mutt/mime.types or /etc/mime.types

The mime.types file consist of lines containing a MIME type and a space separated list of extensions. For example:

application/postscript          ps eps
application/pgp                 pgp
audio/x-aiff                    aif aifc aiff
A sample mime.types file comes with the Mutt distribution, and should contain most of the MIME types you are likely to use.

If Mutt can not determine the mime type by the extension of the file you attach, it will look at the file. If the file is free of binary information, Mutt will assume that the file is plain text, and mark it as text/plain. If the file contains binary information, then Mutt will mark it as application/octect-stream. You can change the MIME type that Mutt assigns to an attachment by using the edit-type command from the compose menu (default: ˆT). When typing in the MIME type, Mutt requires that major type be one of the 5 types: application, text, image, video, or audio. If you attempt to use a different major type, Mutt will abort the change.


The Mutt E-Mail Client : Mutt's MIME Support : MIME Type configuration with mime.types
Previous: The Compose Menu
Next: MIME Viewer configuration with mailcap