* mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer. emiko-1_14_1-epg-0_0_2 emiko-1_14_1-epg-0_0_3
authorueno <ueno>
Sun, 28 May 2006 07:24:21 +0000 (07:24 +0000)
committerueno <ueno>
Sun, 28 May 2006 07:24:21 +0000 (07:24 +0000)
ChangeLog
mime-pgp.el

index 10197ac..3ce6039 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-05-28  Daiki Ueno  <ueno@unixuser.org>
+
+       * mime-pgp.el (mime-add-application/pgp-keys): Don't use a temp buffer.
+
 2006-05-26  Daiki Ueno  <ueno@unixuser.org>
 
        * mime-pgp.el (mime-view-application/pgp): Use
index 739136e..aafe5fd 100644 (file)
 ;;; 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