bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30962: 26.0.91; Encrypt message when there is a key for each recipie


From: Nicolas Petton
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

Damien Cassou <address@hidden> 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 <address@hidden>, Person 2 <address@hidden>\n")
> +    (insert "CC: Person 3 <address@hidden>, Person 4 <address@hidden>\n")
> +    (insert "BCC: Person 5 <address@hidden>, Person 6 <address@hidden>\n")
> +    (should (equal (message-recipients)
> +                   '(("Person 1" "address@hidden")
> +                     ("Person 2" "address@hidden")
> +                     ("Person 3" "address@hidden")
> +                     ("Person 4" "address@hidden")
> +                     ("Person 5" "address@hidden")
> +                     ("Person 6" "address@hidden"))))))

Could you add tests for `message-all-epg-keys-available-p' as well?

Cheers,
Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]