Go to the first, previous, next, last section, table of contents.


2.11 mailcap

The `~/.mailcap' file is parsed by most MIME-aware message handlers and describes how elements are supposed to be displayed. Here's an example file:

image/*; gimp -8 %s
audio/wav; wavplayer %s

This says that all image files should be displayed with gimp, and that WAVE audio files should be played by wavplayer.

The mailcap library parses this file, and provides functions for matching types.

mailcap-mime-data
This variable is an alist of alists containing backup viewing rules.

Interface functions:

mailcap-parse-mailcaps
Parse the ~/.mailcap file.
mailcap-mime-info
Takes a MIME type as its argument and returns the matching viewer.


Go to the first, previous, next, last section, table of contents.