Function: mm-get-part
mm-get-part is an autoloaded and byte-compiled function defined in
mm-decode.el.gz.
Signature
(mm-get-part HANDLE &optional NO-CACHE)
Documentation
Return the contents of HANDLE as a string.
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-get-part (handle &optional no-cache)
"Return the contents of HANDLE as a string.
If NO-CACHE is non-nil, cached contents of a message/external-body part
are ignored."
(if (and (not no-cache)
(equal (mm-handle-media-type handle) "message/external-body"))
(progn
(unless (mm-handle-cache handle)
(mm-extern-cache-contents handle))
(with-current-buffer (mm-handle-buffer (mm-handle-cache handle))
(buffer-string)))
(mm-with-part handle
(buffer-string))))