;;; @@@ predicate function
;;;
-(defvar mime-view-content-button-visible-ctype-list
- '("application/pgp"))
-
(defun mime-view-entity-button-visible-p (entity message-info)
"Return non-nil if header of ENTITY is visible.
Please redefine this function if you want to change default setting."
(ctree-set-calist-strictly
'mime-preview-condition '((type . application)(subtype . pgp)
+ (message-button . visible)
(body . visible)))
(ctree-set-calist-strictly
))
(run-hooks 'mime-view-content-header-filter-hook)
)
- (if (member ctype mime-view-content-button-visible-ctype-list)
- (save-excursion
- (goto-char (point-max))
- (mime-view-insert-entity-button message-info message-info subj)
- ))
(let* ((situation
(ctree-match-calist mime-preview-condition
(list* (cons 'type media-type)
(cons 'encoding encoding)
(cons 'major-mode major-mode)
params)))
+ (message-button
+ (cdr (assq 'message-button situation)))
(body-presentation-method
(cdr (assq 'body-presentation-method situation))))
+ (when message-button
+ (goto-char (point-max))
+ (mime-view-insert-entity-button message-info message-info subj)
+ )
(cond ((eq body-presentation-method 'with-filter)
(let ((body-filter (cdr (assq 'body-filter situation))))
(save-restriction