GNU bug report logs -
#30962
26.0.91; Encrypt message when there is a key for each recipient
Previous Next
Reported by: Damien Cassou <damien <at> cassou.me>
Date: Tue, 27 Mar 2018 15:36:02 UTC
Severity: wishlist
Tags: patch
Found in version 26.0.91
Done: Nicolas Petton <nicolas <at> petton.fr>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 30962 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Damien Cassou <damien <at> 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 <at> p1.org>, Person 2 <p2 <at> p2.org>\n")
> + (insert "CC: Person 3 <p3 <at> p3.org>, Person 4 <p4 <at> p4.org>\n")
> + (insert "BCC: Person 5 <p5 <at> p5.org>, Person 6 <p6 <at> p6.org>\n")
> + (should (equal (message-recipients)
> + '(("Person 1" "p1 <at> p1.org")
> + ("Person 2" "p2 <at> p2.org")
> + ("Person 3" "p3 <at> p3.org")
> + ("Person 4" "p4 <at> p4.org")
> + ("Person 5" "p5 <at> p5.org")
> + ("Person 6" "p6 <at> p6.org"))))))
Could you add tests for `message-all-epg-keys-available-p' as well?
Cheers,
Nico
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 7 years and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.