]> git.eshelyaron.com Git - emacs.git/commitdiff
mm-possibly-verify-or-decrypt should only issue errors when decrypting
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 26 Sep 2019 17:51:23 +0000 (19:51 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 26 Sep 2019 17:51:23 +0000 (19:51 +0200)
* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Only do
the warning about failed decryption when we're handing encrypted
parts, not when doing verification.

lisp/gnus/mm-decode.el

index 42bf5f8081cc9ae5321243fb35155831020c3d77..d9c14120c2f0741648ff51076f000400892c8f92 100644 (file)
@@ -1745,6 +1745,7 @@ If RECURSIVE, search recursively."
     (let ((info (get-text-property 0 'gnus-info (car mm-security-handle))))
       (if (or (not info)
              (equal info "")
+             (equal subtype "encrypted")
              (member "OK" (split-string info "\n")))
          parts
        ;; We had an error during decryption.  Report what it is.