From af9c6767de8690417a6f50f9d5c0d8d701c34e8c Mon Sep 17 00:00:00 2001 From: ueno Date: Sun, 28 May 2006 07:24:21 +0000 Subject: [PATCH] * mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer. --- ChangeLog | 4 ++++ mime-pgp.el | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10197ac..3ce6039 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-28 Daiki Ueno + + * mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer. + 2006-05-26 Daiki Ueno * mime-pgp.el (mime-view-application/pgp): Use diff --git a/mime-pgp.el b/mime-pgp.el index 739136e..aafe5fd 100644 --- a/mime-pgp.el +++ b/mime-pgp.el @@ -182,13 +182,8 @@ ;;; draft-ietf-openpgp-mime-02.txt (OpenPGP/MIME). (defun mime-add-application/pgp-keys (entity situation) - (with-temp-buffer - (mime-insert-entity-content entity) - (mime-decode-region (point-min) (point-max) - (cdr (assq 'encoding situation))) - (epg-import-keys-from-string (epg-make-context) - (buffer-substring (point-min)(point-max))) - (epa-list-keys))) + (epg-import-keys-from-string (epg-make-context) + (mime-entity-content entity))) ;;; @ Internal method for application/pkcs7-mime -- 1.7.10.4