I have GnuPG 1.0.4 installed and have  the standard gpgrc in the contrib
samples for mutt in my .muttrc.
    Almost everything works fine.  I have these two lines in my .muttrc:

.mutt-gpgrc:set pgp_autosign=yes
.mutt-gpgrc:set pgp_sign_as=D68F2C07

    When I send the message, mutt automatically knows which key to sign
with, and asks me for my passphrase.
    The problem is when sending messages.  I use pgp-hook and send-hook
to have mutt automatically encrypt for certain email addresses:

pgp-hook [EMAIL PROTECTED] 12345678
send-hook [EMAIL PROTECTED] set pgp_autoencrypt=yes

    Without these lines, mutt presents me with my entire keyring
to select from for encryption.  When I add the two lines above
to my muttrc file and try again, it presents _two_ keys instead
of just one: the DSA signing and ElG encryption key for that user.
    I am providing the keyid in the pgp-hook command, which should
identify only the encryption key for that user.  Instead, it is
acting like I had provided the email address, and selection all
keys that match that address.

--
"Restore your inalienable human rights.       Jack McKinney
 Vote Libertarian.  http://www.lp.org         http://www.lorentz.com
 http://www.harrybrowne2000.org               [EMAIL PROTECTED]
                                              1024D/D68F2C07 4096g/38AEF076

PGP signature

Reply via email to