mime.types
mailcap
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 SHAREDIR/mime.types
.
SHAREDIR
is defined at compilation time, and can be determined
by typing mutt -v
from the command line.
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.
mime.types
mailcap