emacs: remove auto-signing of replies to signed messages

It was decided that auto-signing is potentially too troublesome for the
apparently common case of users who enable crypto processing for the
purpose of checking signature validity but who are not in a position to
sign out-going messages.  Users can still manually invoke signing as needed.

Encrypting replies to encrypted messages is more of a security issue
so we leave it in place.
This commit is contained in:
Jameson Graef Rollins 2014-04-14 12:40:50 -07:00 committed by David Bremner
parent c2048addd4
commit 16a3103023

View file

@ -116,10 +116,9 @@ list."
notmuch-mua-hidden-headers)) notmuch-mua-hidden-headers))
(defun notmuch-mua-reply-crypto (parts) (defun notmuch-mua-reply-crypto (parts)
"Add mml sign-encrypt flag if any part of original message is encrypted."
(loop for part in parts (loop for part in parts
if (notmuch-match-content-type (plist-get part :content-type) "multipart/signed") if (notmuch-match-content-type (plist-get part :content-type) "multipart/encrypted")
do (mml-secure-message-sign)
else if (notmuch-match-content-type (plist-get part :content-type) "multipart/encrypted")
do (mml-secure-message-sign-encrypt) do (mml-secure-message-sign-encrypt)
else if (notmuch-match-content-type (plist-get part :content-type) "multipart/*") else if (notmuch-match-content-type (plist-get part :content-type) "multipart/*")
do (notmuch-mua-reply-crypto (plist-get part :content)))) do (notmuch-mua-reply-crypto (plist-get part :content))))
@ -236,7 +235,7 @@ list."
;; Quote the original message according to the user's configured style. ;; Quote the original message according to the user's configured style.
(message-cite-original))) (message-cite-original)))
;; Sign and/or encrypt replies to signed and/or encrypted messages. ;; Crypto processing based crypto content of the original message
(when process-crypto (when process-crypto
(notmuch-mua-reply-crypto (plist-get original :body)))) (notmuch-mua-reply-crypto (plist-get original :body))))