Function: mml-to-mime
mml-to-mime is an autoloaded and byte-compiled function defined in
mml.el.gz.
Signature
(mml-to-mime)
Documentation
Translate the current buffer from MML to MIME.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mml.el.gz
;;;###autoload
(defun mml-to-mime ()
"Translate the current buffer from MML to MIME."
;; `message-encode-message-body' will insert an encoded Content-Description
;; header in the message header if the body contains a single part
;; that is specified by a user with a MML tag containing a description
;; token. So, we encode the message header first to prevent the encoded
;; Content-Description header from being encoded again.
(save-restriction
(message-narrow-to-headers-or-head)
;; Skip past any From_ headers.
(while (looking-at "From ")
(forward-line 1))
(mail-encode-encoded-word-buffer))
(message-encode-message-body))