From: Gregor Zattler <telegraph@gmx.net>
To: emacs-devel@gnu.org, Damien Cassou <damien@cassou.me>,
Nicolas Petton <nicolas@petton.fr>
Subject: Re: [Emacs-diffs] master 29006a6: Detect if a message can be encrypted and add an MML tag
Date: Wed, 11 Apr 2018 13:32:20 +0200 [thread overview]
Message-ID: <87k1te567v.fsf@len.workgroup> (raw)
In-Reply-To: <20180404183305.17AB4202C3@vcs0.savannah.gnu.org>
Hi Nicolas, Damien,
this is great functionality! But I have problems using this:
* Nicolas Petton <petton.nicolas@gmail.com> [2018-04-04; 14:33]:
> branch: master
> commit 29006a6fd8e989013098b0281aa0b9efe13feb1d
> Author: Damien Cassou <damien@cassou.me>
> Commit: Nicolas Petton <nicolas@petton.fr>
>
> 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.
> ---
> etc/NEWS | 8 +++++++
> lisp/gnus/message.el | 30 +++++++++++++++++++++++++++
> test/lisp/gnus/message-tests.el | 46 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 84 insertions(+)
>
> diff --git a/etc/NEWS b/etc/NEWS
> index baff966..02b31ec 100644
> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -337,6 +337,14 @@ or NextCloud hosted files and directories.
> It was obsolete since Emacs 22.1, replaced by customize.
>
> \f
> +** 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'.
When doing so I get:
run-hooks: Symbol’s function definition is void:
message-add-encrypt-tag-if-can-encrypt when sending a email.
Actually rgrepping emacs source for
"message-add-encrypt-tag-if-can-encrypt" finds only this very
NEWS entry.
Instead I added message-sign-encrypt-if-all-keys-available to
message-send-hook. This works but there are two separate issues:
1) It adds the MML tags even if the recipients key is disabled.
2) More complicated: The UI does not provide a means to
temporarily not use encryption (when e.g. you know your
correspondent is on vacation and reads email on a smartphone
without decryption facilities). The only way to send an
unencrypted email to a recipient for whom I have the
corresponding pub key, is to delete
message-sign-encrypt-if-all-keys-available from message-send-hook
before sending.
Thanks for working on this urgently needed feature, Gregor
next parent reply other threads:[~2018-04-11 11:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180404183303.27542.7640@vcs0.savannah.gnu.org>
[not found] ` <20180404183305.17AB4202C3@vcs0.savannah.gnu.org>
2018-04-11 11:32 ` Gregor Zattler [this message]
2018-04-11 11:44 ` [Emacs-diffs] master 29006a6: Detect if a message can be encrypted and add an MML tag Damien Cassou
2018-04-11 13:07 ` Herring, Davis
2018-04-11 17:57 ` Gregor Zattler
[not found] <mailman.37408.1523451062.27992.emacs-devel@gnu.org>
2018-04-11 18:00 ` Jens Lechtenboerger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1te567v.fsf@len.workgroup \
--to=telegraph@gmx.net \
--cc=damien@cassou.me \
--cc=emacs-devel@gnu.org \
--cc=nicolas@petton.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.