Function: mh-folder-mime-action
mh-folder-mime-action is a byte-compiled function defined in
mh-mime.el.gz.
Signature
(mh-folder-mime-action PART-INDEX ACTION INCLUDE-SECURITY-FLAG)
Documentation
Go to PART-INDEX and carry out ACTION.
If PART-INDEX is nil then go to the next part in the buffer. The search for the next buffer wraps around if end of buffer is reached. If argument INCLUDE-SECURITY-FLAG is non-nil then include security info buttons when searching for a suitable parts.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
;;; Button Handlers
(defun mh-folder-mime-action (part-index action include-security-flag)
"Go to PART-INDEX and carry out ACTION.
If PART-INDEX is nil then go to the next part in the buffer. The
search for the next buffer wraps around if end of buffer is reached.
If argument INCLUDE-SECURITY-FLAG is non-nil then include security
info buttons when searching for a suitable parts."
(unless mh-showing-mode
(mh-show))
(mh-in-show-buffer (mh-show-buffer)
(let ((criterion
(cond (part-index
(lambda (p)
(let ((part (get-text-property p 'mh-part)))
(and (integerp part) (= part part-index)))))
(t (lambda (p)
(if include-security-flag
(get-text-property p 'mh-data)
(integerp (get-text-property p 'mh-part)))))))
(point (point)))
(cond ((and (get-text-property point 'mh-part)
(or (null part-index)
(= (get-text-property point 'mh-part) part-index)))
(funcall action))
((and (get-text-property point 'mh-data)
include-security-flag
(null part-index))
(funcall action))
(t
(mh-goto-next-button nil criterion)
(if (= (point) point)
(message "No matching MIME part found")
(funcall action)))))))