Function: metamail-interpret-header
metamail-interpret-header is an interactive and byte-compiled function
defined in metamail.el.gz.
Signature
(metamail-interpret-header)
Documentation
Interpret a header part of a MIME message in current buffer.
Its body part is not interpreted at all.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/metamail.el.gz
;;;###autoload
(defun metamail-interpret-header ()
"Interpret a header part of a MIME message in current buffer.
Its body part is not interpreted at all."
(interactive)
(save-excursion
(let* ((buffer-read-only nil)
(metamail-switches ;Inhibit processing an empty body.
(append metamail-switches '("-c" "text/plain" "-E" "7bit")))
(end (progn
(goto-char (point-min))
(search-forward "\n\n" nil 'move)
;; An extra newline is inserted by metamail if there
;; is no body part. So, insert a dummy body by
;; itself.
(insert "\n")
(point))))
(metamail-region (point-min) end nil nil 'nodisplay)
;; Remove an extra newline inserted by myself.
(goto-char (point-min))
(if (search-forward "\n\n\n" nil t)
(delete-char -1))
)))