+@defopt mailcap-default-mime-extensions
+This variable is the default value of @code{mailcap-mime-extensions}.
+It exists to allow setting the value using Custom. It is merged with
+values from mailcap files by @code{mailcap-parse-mimetypes}.
+@end defopt
+
+Interface functions:
+
+@defun mailcap-parse-mailcaps &optional path force
+Parse all the mailcap files specified in a path string @var{path} and
+merge them with the values from @code{mailcap-mime-data}. Components of
+@var{path} are separated by the @code{path-separator} character
+appropriate for the system. If @var{force} is non-@code{nil}, the files
+are re-parsed even if they have been parsed already. If @var{path} is
+omitted, use the value of environment variable @code{MAILCAPS} if it is
+set; otherwise (on Unix) use the path defined in RFC 1524, plus
+@file{/usr/local/etc/mailcap}.
+@end defun
+
+@defun mailcap-parse-mimetypes &optional path force
+Parse all the mimetypes specified in a Unix-style path string @var{path}
+and merge them with the values from @code{mailcap-mime-extensions}.
+Components of @var{path} are separated by the @code{path-separator}
+character appropriate for the system. If @var{path} is omitted, use the
+value of environment variable @code{MIMETYPES} if set; otherwise use a
+default path consistent with that used by @code{mailcap-parse-mailcaps}.
+If @var{force} is non-@code{nil}, the files are re-parsed even if they
+have been parsed already.
+@end defun
+
+@defun mailcap-mime-info string &optional request
+Gets the viewer command for content-type @var{string}. @code{nil} is
+returned if none is found. Expects @var{string} to be a complete
+content-type header line.
+
+If @var{request} is non-@code{nil} it specifies what information to
+return. If it is nil or the empty string, the viewer (second field of
+the mailcap entry) will be returned. If it is a string, then the
+mailcap field corresponding to that string will be returned
+(@samp{print}, @samp{description}, whatever). If it is a number, all
+the information for this viewer is returned. If it is @code{all}, then
+all possible viewers for this type is returned.
+@end defun
+
+@defun mailcap-mime-types
+This function returns a list of all the defined media types.
+@end defun
+
+@defun mailcap-extension-to-mime extension
+This function returns the content type defined for a file with the given
+@var{extension}.
+@end defun