+2007-04-26 Daiki Ueno <ueno@unixuser.org>
+
+ * epg.el (epg--prompt-GET_BOOL-untrusted_key.override): Lookup
+ user-id from epg-user-id-alist.
+
2007-04-22 Daiki Ueno <ueno@unixuser.org>
* epa-file.el (epa-file-select-keys): New command.
(y-or-n-p (if entry (cdr entry) (concat string "? ")))))
(defun epg--prompt-GET_BOOL-untrusted_key.override (context string)
- (y-or-n-p (if (equal (car epg-last-status) "USERID_HINT")
- (format "Untrusted key %s. Use anyway? "
- (cdr epg-last-status))
+ (y-or-n-p (if (and (equal (car epg-last-status) "USERID_HINT")
+ (string-match "\\`\\([^ ]+\\) \\(.*\\)" string))
+ (let* ((key-id (match-string 1 string))
+ (user-id (match-string 2 string))
+ (entry (assoc key-id epg-user-id-alist)))
+ (if entry
+ (setq user-id (cdr entry)))
+ (format "Untrusted key %s %s. Use anyway? " key-id user-id))
"Use untrusted key anyway? ")))
(defun epg--status-GET_BOOL (context string)