+2005-06-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * wl-mime.el (wl-message-verify-pgp-nonmime): Fix the last change.
+
2005-06-04 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* wl-mime.el (wl-message-verify-pgp-nonmime): Verify encoded
(save-excursion
(beginning-of-line)
(let ((message-buffer (current-buffer))
- beg end coding-system verify-ok m-beg)
+ beg end coding-system success)
(setq end (and (or (re-search-forward "^-+END PGP SIGNATURE-+$" nil t)
(re-search-backward "^-+END PGP SIGNATURE-+$" nil t)
(error "Cannot find pgp signed region"))
(with-temp-buffer
(insert-buffer-substring message-buffer beg end)
(encode-coding-region (point-min) (point-max) coding-system)
- (setq verify-ok (pgg-verify-region (point-min) (point-max) nil 'fetch)))
+ (setq success (pgg-verify-region (point-min) (point-max) nil 'fetch)))
(mime-show-echo-buffer)
(set-buffer mime-echo-buffer-name)
(set-window-start
(get-buffer-window mime-echo-buffer-name)
(point-max))
- (let ((beg (point)))
- (insert-buffer-substring
- (if verify-ok pgg-output-buffer pgg-errors-buffer))
- (encode-coding-region beg (point) buffer-file-coding-system)
- (decode-coding-region beg (point) wl-cs-autoconv)))))
+ (insert-buffer-substring
+ (if success pgg-output-buffer pgg-errors-buffer)))))
;; XXX: encrypted multipart isn't represented as multipart
(defun wl-mime-preview-application/pgp (parent-entity entity situation)