9.7.2. Registration of media type handlers with mailcap entries
Packages that are not using desktop entries for registration should install a file in mailcap(5) format (RFC 1524) in the directory /usr/lib/mime/packages/
. The file name should be the binary package’s name.
The mime-support package provides the update-mime
program, which integrates these registrations in the /etc/mailcap
file, using dpkg triggers. 5
Packages installing desktop entries should not install mailcap entries for the same program, because the mime-support package already reads desktop entries.
Packages using these facilities should not depend on, recommend, or suggest mime-support
.