mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs: notmuch-mua-add-more-hidden-headers: use local binding
This commit is contained in:
parent
a2bf29ad35
commit
6cae6f32b1
1 changed files with 3 additions and 4 deletions
|
@ -217,11 +217,10 @@ Typically this is added to `notmuch-mua-send-hook'."
|
|||
(defun notmuch-mua-reply-crypto (parts)
|
||||
"Add mml sign-encrypt flag if any part of original message is encrypted."
|
||||
(cl-loop for part in parts
|
||||
if (notmuch-match-content-type (plist-get part :content-type)
|
||||
"multipart/encrypted")
|
||||
for type = (plist-get part :content-type)
|
||||
if (notmuch-match-content-type type "multipart/encrypted")
|
||||
do (mml-secure-message-sign-encrypt)
|
||||
else if (notmuch-match-content-type (plist-get part :content-type)
|
||||
"multipart/*")
|
||||
else if (notmuch-match-content-type type "multipart/*")
|
||||
do (notmuch-mua-reply-crypto (plist-get part :content))))
|
||||
|
||||
;; There is a bug in Emacs' message.el that results in a newline
|
||||
|
|
Loading…
Reference in a new issue