1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

mm-possibly-verify-or-decrypt should only issue errors when decrypting

* 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.
This commit is contained in:
Lars Ingebrigtsen 2019-09-26 19:51:23 +02:00
parent 9d002e5049
commit c4e0ccd151

View 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.