+2002-09-17 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+
+ * wl-mime.el (wl-mime-decrypt-application/pgp-encrypted): New
+ function, a wrapper for `mime-decrypt-application/pgp-encrypted'.
+ (wl-mime-setup): Add its entry.
+
2002-09-13 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
- * wl-mime.el (wl-draft-preview-message): Revive the position
+ * wl-mime.el (wl-draft-preview-message): Restore the position
before evaluating wl-draft-send-hook in preview buffer.
2002-09-12 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
(elmo-mime-insert-header entity situation)
(wl-highlight-headers)))
+(defun wl-mime-decrypt-application/pgp-encrypted (entity situation)
+ (let ((summary-buffer wl-message-buffer-cur-summary-buffer)
+ (original-buffer wl-message-buffer-original-buffer))
+ (mime-decrypt-application/pgp-encrypted entity situation)
+ (setq wl-message-buffer-cur-summary-buffer summary-buffer)
+ (setq wl-message-buffer-original-buffer original-buffer)))
+
+
;;; Setup methods.
(defun wl-mime-setup ()
(set-alist 'mime-preview-quitting-method-alist
(ctree-set-calist-strictly
'mime-acting-condition
+ '((type . application) (subtype . pgp-encrypted)
+ (method . wl-mime-decrypt-application/pgp-encrypted)
+ (major-mode . wl-original-message-mode)))
+
+ (ctree-set-calist-strictly
+ 'mime-acting-condition
'((mode . "extract")
(major-mode . wl-original-message-mode)
(method . wl-mime-save-content)))