From: Nicolas Petton <nicolas@petton.fr>
To: Damien Cassou <damien@cassou.me>, 30962@debbugs.gnu.org
Subject: bug#30962: 26.0.91; Encrypt message when there is a key for each recipient
Date: Wed, 04 Apr 2018 10:34:50 +0200 [thread overview]
Message-ID: <87o9izxtcl.fsf@petton.fr> (raw)
In-Reply-To: <87r2o58rbc.fsf@cassou.me>
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
Damien Cassou <damien@cassou.me> writes:
Hi Damien,
> Attached patch adds support to automatically encrypt email messages when
> the epg keyring contains a key for every recipient.
Thanks, I've been using it for a few days without any issue.
> +(defun message-recipients ()
^^^^^^^^^^^^^^^^^^
Would `message-all-recipients' be a better name?
> [...]
> +(ert-deftest message-recipients ()
> + (ert-with-test-buffer (:name "message")
> + (insert "To: Person 1 <p1@p1.org>, Person 2 <p2@p2.org>\n")
> + (insert "CC: Person 3 <p3@p3.org>, Person 4 <p4@p4.org>\n")
> + (insert "BCC: Person 5 <p5@p5.org>, Person 6 <p6@p6.org>\n")
> + (should (equal (message-recipients)
> + '(("Person 1" "p1@p1.org")
> + ("Person 2" "p2@p2.org")
> + ("Person 3" "p3@p3.org")
> + ("Person 4" "p4@p4.org")
> + ("Person 5" "p5@p5.org")
> + ("Person 6" "p6@p6.org"))))))
Could you add tests for `message-all-epg-keys-available-p' as well?
Cheers,
Nico
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-04-04 8:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 15:35 bug#30962: 26.0.91; Encrypt message when there is a key for each recipient Damien Cassou
2018-04-04 8:34 ` Nicolas Petton [this message]
2018-04-04 9:35 ` Damien Cassou
2018-04-04 13:28 ` Nicolas Petton
2018-04-04 15:43 ` Lars Ingebrigtsen
2018-04-04 18:35 ` Nicolas Petton
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=87o9izxtcl.fsf@petton.fr \
--to=nicolas@petton.fr \
--cc=30962@debbugs.gnu.org \
--cc=damien@cassou.me \
/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.