Function: mailcap-extension-to-mime

mailcap-extension-to-mime is a byte-compiled function defined in mailcap.el.gz.

Signature

(mailcap-extension-to-mime EXTN)

Documentation

Return the MIME content type of the file extensions EXTN.

Source Code

;; Defined in /usr/src/emacs/lisp/net/mailcap.el.gz
(defun mailcap-extension-to-mime (extn)
  "Return the MIME content type of the file extensions EXTN."
  (mailcap-parse-mimetypes)
  (if (and (stringp extn)
	   (not (eq (string-to-char extn) ?.)))
      (setq extn (concat "." extn)))
  (cdr (assoc (downcase extn) mailcap-mime-extensions)))