(mime-add-application/pgp-keys): Decode the entity body before snarfing keys.
authoryamaoka <yamaoka>
Wed, 28 Jul 1999 23:22:19 +0000 (23:22 +0000)
committeryamaoka <yamaoka>
Wed, 28 Jul 1999 23:22:19 +0000 (23:22 +0000)
mime-pgp.el

index b953c12..b2cebc7 100644 (file)
@@ -547,9 +547,11 @@ list of expected key-ID, start position and lines to be shown a result."
 ;;; It is based on RFC 2015 (PGP/MIME) and
 ;;; draft-yamamoto-openpgp-mime-00.txt (OpenPGP/MIME).
 
-(defun mime-add-application/pgp-keys (entity &optional situation)
+(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)))
     (let ((pgp-version (mime-pgp-detect-version)))
       (funcall (pgp-function 'snarf-keys))
       )))