Function: mh-have-file-command

mh-have-file-command is an autoloaded and byte-compiled function defined in mh-mime.el.gz.

Signature

(mh-have-file-command)

Documentation

Return t if file command is on the system.

"file -i" is used to get MIME type of composition insertion.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
;;;###mh-autoload
(defun mh-have-file-command ()
  "Return t if `file' command is on the system.
\"file -i\" is used to get MIME type of composition insertion."
  (when (eq mh-have-file-command 'undefined)
    (setq mh-have-file-command
          (and (executable-find "file") ; file command exists
                                        ;   and accepts -i and -b args.
               (zerop (call-process "file" nil nil nil "-i" "-b"
                                    (expand-file-name "inc" mh-progs))))))
  mh-have-file-command)