Make epa-mail-encrypt handle local-part only recipients.

* epa-mail.el (epa-mail-encrypt): Handle local-part only
recipients (Bug#7280).
This commit is contained in:
Daiki Ueno 2010-10-26 10:02:08 +09:00
parent 84acb2f67b
commit 77ec02d8fd
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-10-26 Daiki Ueno <ueno@unixuser.org>
* epa-mail.el (epa-mail-encrypt): Handle local-part only
recipients (Bug#7280).
2010-10-25 Glenn Morris <rgm@gnu.org>
* term/common-win.el (x-handle-switch): Simplify with pop.

View file

@ -154,7 +154,9 @@ If no one is selected, symmetric encryption will be performed. "
(epa-mail--find-usable-key
(epg-list-keys
(epg-make-context epa-protocol)
(concat "<" recipient ">"))
(if (string-match "@" recipient)
(concat "<" recipient ">")
recipient))
'encrypt))
(unless (or recipient-key
(y-or-n-p