Subject: 24.3.50; epa-mail-encrypt chooses wrong key

From: Richard Stallman <[email-masked]>
Date: Fri, 25 Jan 2013 16:32:31 -0500

I have a public key for [email-masked] and a key for another martin at
another host.  When I encrypt a message to `martin' -- which means, in
my case, [email-masked]' -- epa-mail-encrypt picks the other martin.

epa needs to know the default mail hostname so as to pick the correct
Martin.  It can get that from the value of user-mail-address, and
maybe have other ways to specify it.

In GNU Emacs 24.3.50.1 (mips64el-unknown-linux-gnu, GTK+ Version 2.12.12)
 of 2013-01-03 on chiefs-gnewsense
Bzr revision: 111408 [email-masked]
System Description:	Debian GNU/Linux 6.0.6 (squeeze)

Configured using:
 `configure CFLAGS=-O0 -g --with-gif=no --with-tiff=no --no-create
 --no-recursion'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Mail

Minor modes in effect:
  gpm-mouse-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-x b o u t g TAB RET g e ESC x e p a d RET y C-n C-n 
C-n C-p C-e @ g n u . o r g ESC x e p a SPC m a i l 
SPC e n c TAB RET y y y C-x C-s C-c C-s y C-x b o u 
t g TAB RET g C-p e C-x b o u t - 2 9 RET C-_ ESC DEL 
ESC DEL DEL ESC x e p a SPC m a i l SPC e n TAB RET 
y y C-x 4 b RET C-x o C-x k RET y e s RET ESC x r e 
p o r t SPC e m a c s SPC b u g RET

Recent messages:
Saving file /home/rms/outgoing/out-29...
Wrote /home/rms/outgoing/out-29
Send buffer contents as mail message? (y or n)  y
Sending...
Wrote /home/rms/outgoing/out-30
Sending...done
Undo!
No public key for [email-masked]; skip it? (y or n)  y
No public key for [email-masked]; skip it? (y or n)  y
Encrypting...done

Load-path shadows:
None found.

Features:
(shadow emacsbug mailalias epa-mail epa derived epg epg-config rmailmm
message sendmail format-spec rfc822 mml easymenu mml-sec mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
dired t-mouse time-date rmailedit rmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils paren cus-start cus-load nadvice advice
help-fns tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet
lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook
help simple abbrev minibuffer loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call