Function: mm-insert-part
mm-insert-part is a byte-compiled function defined in mm-decode.el.gz.
Signature
(mm-insert-part HANDLE &optional NO-CACHE)
Documentation
Insert the contents of HANDLE in the current buffer.
If NO-CACHE is non-nil, cached contents of a message/external-body part are ignored.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mm-decode.el.gz
(defun mm-insert-part (handle &optional no-cache)
"Insert the contents of HANDLE in the current buffer.
If NO-CACHE is non-nil, cached contents of a message/external-body part
are ignored."
(let ((text (cond ((eq (mail-content-type-get (mm-handle-type handle)
'charset)
'gnus-decoded)
(with-current-buffer (mm-handle-buffer handle)
(buffer-string)))
(t
(mm-get-part handle no-cache)))))
(save-restriction
(widen)
(goto-char
(prog1
(point)
(if (and (eq (get-char-property (max (point-min) (1- (point))) 'face)
'mm-uu-extract)
(eq (get-char-property 0 'face text) 'mm-uu-extract))
;; Separate the extracted parts that have the same faces.
(insert "\n" text)
(insert text)))))))