;; Created: 1994/7/13
;; Renamed: 1994/8/31 from tm-body.el
;; Renamed: 1997/02/19 from tm-view.el
-;; Version: $Revision: 0.43 $
+;; Version: $Revision: 0.44 $
;; Keywords: MIME, multimedia, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst mime-view-RCS-ID
- "$Id: mime-view.el,v 0.43 1997-03-17 13:35:07 morioka Exp $")
+ "$Id: mime-view.el,v 0.44 1997-03-17 13:46:57 morioka Exp $")
(defconst mime-view-version (get-version-string mime-view-RCS-ID))
))
-;;; @@ content button
+;;; @@ entity button
;;;
(defun mime-view-insert-entity-button (rcnum cinfo ctype params subj encoding)
(defun mime-view-entity-button-function
(rcnum cinfo ctype params subj encoding)
"Insert entity button conditionally."
- (if (and (consp rcnum)
- (not (string= ctype "application/x-selection"))
- )
+ (or (null rcnum)
+ (string= ctype "application/x-selection")
+ (and (string= ctype "application/octet-stream")
+ (string= (mime::content-info/type
+ (mime-article/rcnum-to-cinfo (cdr rcnum) cinfo))
+ "multipart/encrypted"))
(mime-view-insert-entity-button rcnum cinfo ctype params subj encoding)
- ))
+ ))
;;; @@ content header filter