diff options
author | Damien Cassou <damien@cassou.me> | 2018-03-27 16:57:51 +0200 |
---|---|---|
committer | Nicolas Petton <nicolas@petton.fr> | 2018-04-04 20:32:28 +0200 |
commit | 29006a6fd8e989013098b0281aa0b9efe13feb1d (patch) | |
tree | c54269bbdc5be50dae63a66be8b60aaa0be29b48 /etc | |
parent | 447da5b0d49b7aa14fa5d6969015770fdf9b9f92 (diff) | |
download | emacs-29006a6fd8e989013098b0281aa0b9efe13feb1d.tar.gz |
Detect if a message can be encrypted and add an MML tag
* lisp/gnus/message.el (message-all-recipients): Return a list of
pairs, one for each recipient in To, Cc, Bcc.
(message-all-epg-keys-available-p): Check that there is a public key
in epg for each recipient of the current message.
(message-sign-encrypt-if-all-keys-available): Add MML tag to sign and
encrypt current message if there is a public key for every recipient
in current message.
* test/lisp/gnus/message-tests.el (message-all-recipients): Test for
message-all-recipients.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -337,6 +337,14 @@ or NextCloud hosted files and directories. It was obsolete since Emacs 22.1, replaced by customize. +** Message + ++++ +*** Messages can now be systematically encrypted +when the PGP keyring contains a public key for every recipient. To +achieve this, add 'message-add-encrypt-tag-if-can-encrypt' to +'message-send-hook'. + * New Modes and Packages in Emacs 27.1 +++ |