(mime-verify-application/*-signature): Supply required arguments
to buffer-substring.
(mime-view-application/pgp): Convert line endings of the decrypted
text.
Thanks to Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
[cf. <emacs-mime-ja:02027>]
+2006-04-30 Daiki Ueno <ueno@unixuser.org>
+
+ * mime-pgp.el: Require 'epa.
+ (mime-verify-application/*-signature): Supply required arguments
+ to buffer-substring.
+ (mime-view-application/pgp): Convert line endings of the decrypted
+ text.
+ Thanks to Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
+ [cf. <emacs-mime-ja:02027>]
+
2006-04-23 Daiki Ueno <ueno@unixuser.org>
* mime-pgp.el (mime-verify-application/*-signature): New function.
(require 'mime-play)
(require 'epg)
+(require 'epa)
;;; @ Internal method for multipart/signed
;;;
(re-search-forward "^-+BEGIN PGP MESSAGE-+$" nil t))
(setq context (epg-make-context))
(setq plain
- (epg-decrypt-string
- context
- (buffer-substring (point-min)(point-max))))
+ (decode-coding-string
+ (epg-decrypt-string
+ context
+ (buffer-substring (point-min)(point-max)))
+ 'raw-text))
(delete-region (point-min)(point-max))
(insert plain)
(setq representation-type 'binary)))
(goto-char (point-min))
(while (search-forward "\n" nil t)
(replace-match "\r\n"))
- (buffer-substring)))
+ (buffer-substring (point-min) (point-max))))
(message "%s"
(epg-verify-result-to-string
(epg-context-result-for context 'verify)))))