recipient whose public key is not available.
+2007-01-05 Daiki Ueno <ueno@unixuser.org>
+
+ * epa.el (epa-encrypt-mail): Ask a user whether to skip a
+ recipient whose public key is not available.
+
2007-01-04 Daiki Ueno <ueno@unixuser.org>
* epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
(save-excursion
(let ((verbose current-prefix-arg)
(context (epg-make-context epa-protocol))
- recipients)
+ recipients recipient-keys)
(goto-char (point-min))
(when (epa--mail-mode-p)
(save-restriction
If no one is selected, symmetric encryption will be performed. "
recipients)
(if recipients
- (delq nil
- (apply #'nconc
- (mapcar
- (lambda (recipient)
+ (apply #'nconc
+ (mapcar
+ (lambda (recipient)
+ (setq recipient-keys
(epg-list-keys
(epg-make-context epa-protocol)
(concat "<" recipient ">")))
- recipients)))))
+ (unless (or recipient-keys
+ (y-or-n-p
+ (format
+ "No public key for %s; skip it? "
+ recipient)))
+ (error "No public key for %s" recipient))
+ recipient-keys)
+ recipients))))
(setq sign (if verbose (y-or-n-p "Sign? ")))
(if sign
(epa-select-keys context