* mime-pgp.el (mime-view-application/pgp): Allow to verify
authorueno <ueno>
Thu, 4 May 2006 22:35:45 +0000 (22:35 +0000)
committerueno <ueno>
Thu, 4 May 2006 22:35:45 +0000 (22:35 +0000)
signed-and-encrypted messages.

ChangeLog
mime-pgp.el

index 53cbab9..4e3db87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-04  Daiki Ueno  <ueno@unixuser.org>
+
+       * mime-pgp.el (mime-view-application/pgp): Allow to verify
+       signed-and-encrypted messages.
+
 2006-04-30  Daiki Ueno  <ueno@unixuser.org>
 
        * mime-pgp.el: Require 'epa.
index 0fbf1ad..91eae62 100644 (file)
@@ -88,9 +88,6 @@
           (epg-verify-string
            context
            (buffer-substring (match-beginning 0)(point-max)))
-          (message "%s"
-                   (epg-verify-result-to-string
-                    (epg-context-result-for context 'verify)))
           (goto-char (point-min))
           (delete-region
            (point-min)
                  'raw-text))
           (delete-region (point-min)(point-max))
           (insert plain)
-          (setq representation-type 'binary)))
+          (setq representation-type 'binary)
+          ))
     (setq major-mode 'mime-show-message-mode)
     (save-window-excursion
       (mime-view-buffer nil preview-buffer mother
                        nil representation-type)
       (make-local-variable 'mime-view-temp-message-buffer)
       (setq mime-view-temp-message-buffer message-buf))
-    (set-window-buffer p-win preview-buffer)))
+    (set-window-buffer p-win preview-buffer)
+    (if (and context
+            (epg-context-result-for context 'verify))
+       (message "%s"
+                (epg-verify-result-to-string
+                 (epg-context-result-for context 'verify))))))
 
 
 (defun mime-verify-application/*-signature (entity situation)