Synch with Oort Gnus.
authoryamaoka <yamaoka>
Fri, 29 Jun 2001 04:47:08 +0000 (04:47 +0000)
committeryamaoka <yamaoka>
Fri, 29 Jun 2001 04:47:08 +0000 (04:47 +0000)
lisp/ChangeLog
lisp/mml2015.el

index baedd82..e4eef78 100644 (file)
@@ -1,6 +1,13 @@
+2001-06-28 11:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mml2015.el (mml2015-format-error): New function.
+       (mml2015-mailcrypt-decrypt, mml2015-mailcrypt-clear-decrypt)
+       (mml2015-mailcrypt-verify, mml2015-gpg-clear-verify)
+       (mml2015-mailcrypt-clear-verify, mml2015-gpg-verify): Use it. 
+
 2001-06-26 22:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
-       * nnrss.el (nnrss-retrieve-headers): The description may exist.
+       * nnrss.el (nnrss-retrieve-headers): The description may not exist.
        Suggested by Christoph Conrad <C.Conrad@cli.de>.
 
        * gnus-sum.el (gnus-summary-set-local-parameters): Don't override
index 63b6356..3048c9a 100644 (file)
 (defvar mml2015-decrypt-function 'mailcrypt-decrypt)
 (defvar mml2015-verify-function 'mailcrypt-verify)
 
+(defun mml2015-format-error (err)
+  (if (stringp (cadr err))
+      (cadr err)
+    (format "%S" (cdr err))))
+
 (defun mml2015-mailcrypt-decrypt (handle ctl)
   (catch 'error
     (let (child handles result)
@@ -93,7 +98,7 @@
                  (funcall mml2015-decrypt-function)
                (error
                 (mm-set-handle-multipart-parameter
-                 mm-security-handle 'gnus-details (cadr err))
+                 mm-security-handle 'gnus-details (mml2015-format-error err))
                 nil)
                (quit
                 (mm-set-handle-multipart-parameter
              (funcall mml2015-decrypt-function)
            (error
             (mm-set-handle-multipart-parameter
-             mm-security-handle 'gnus-details (cadr err))
+             mm-security-handle 'gnus-details (mml2015-format-error err))
             nil)
            (quit
             (mm-set-handle-multipart-parameter
                            (kill-buffer mc-gpg-debug-buffer)))
                    (error
                     (mm-set-handle-multipart-parameter
-                     mm-security-handle 'gnus-details (cadr err))
+                     mm-security-handle 'gnus-details (mml2015-format-error err))
                     nil)
                    (quit
                     (mm-set-handle-multipart-parameter
                  (kill-buffer mc-gpg-debug-buffer)))
          (error
           (mm-set-handle-multipart-parameter
-           mm-security-handle 'gnus-details (cadr err))
+           mm-security-handle 'gnus-details (mml2015-format-error err))
           nil)
          (quit
           (mm-set-handle-multipart-parameter
                           (buffer-string))))
                    (error
                     (mm-set-handle-multipart-parameter
-                     mm-security-handle 'gnus-details (cadr err))
+                     mm-security-handle 'gnus-details (mml2015-format-error err))
                     nil)
                    (quit
                     (mm-set-handle-multipart-parameter
               (buffer-string))))
        (error
         (mm-set-handle-multipart-parameter
-         mm-security-handle 'gnus-details (cadr err))
+         mm-security-handle 'gnus-details (mml2015-format-error err))
         nil)
        (quit
         (mm-set-handle-multipart-parameter