Function: mh-mh-attach-file
mh-mh-attach-file is an interactive and byte-compiled function defined
in mh-mime.el.gz.
Signature
(mh-mh-attach-file FILENAME TYPE DESCRIPTION ATTRIBUTES)
Documentation
Add a tag to insert a MIME message part from a file.
You are prompted for the FILENAME containing the object, the media TYPE if it cannot be determined automatically, and a content DESCRIPTION. In addition, you are also prompted for additional ATTRIBUTES.
See also M-x mh-mh-to-mime (mh-mh-to-mime).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
(defun mh-mh-attach-file (filename type description attributes)
"Add a tag to insert a MIME message part from a file.
You are prompted for the FILENAME containing the object, the
media TYPE if it cannot be determined automatically, and a
content DESCRIPTION. In addition, you are also prompted for
additional ATTRIBUTES.
See also \\[mh-mh-to-mime]."
(interactive (let ((filename (mml-minibuffer-read-file "Attach file: ")))
(list
filename
(mh-minibuffer-read-type filename)
(mml-minibuffer-read-description)
(read-string "Attributes: "
(concat "name=\""
(file-name-nondirectory filename)
"\"")))))
(mh-mh-compose-type filename type description attributes))