<<< Date Index >>>     <<< Thread Index >>>

Re: Get PGP Keys on Demand?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday, August 26 at 01:56 PM, quoth Darrin Chandler:
> I've recently got GnuPG installed and working, and with some help 
> from a couple of sources I've got it working nicely in mutt. Well, 
> except for one thing. I'd like to easily fetch a key on demand. I 
> know about setting auto-key-retrieve, but I don't want every key I 
> come across. I'm on some mailing lists where many people sign 
> messages, and I have no need to fill my key ring. But there are 
> times when I'd love to have a key combo to retrieve the key.

Hmm... there seems to be a $pgp_getkeys_command variable, which looks 
like it's related to what you want. However, I have no idea how to 
trigger it. It looks like it should trigger if $crypt_verify_sig=yes, 
but I've never had it auto-fetch the key...

In general, the way I handle this is I have $crypt_verify_sig=yes and 
then I have hooks that set $crypt_verify_sig to no if I'm viewing a 
message from a mailing list, like so:

    message-hook .  'set crypt_verify_sig=yes'
    message-hook ~l 'set crypt_verify_sig=no'

You could also do it with a folder-hook, which would be easier to 
override (e.g. create a macro to set crypt_verify_sig and then make 
mutt re-view the message).

But now that you mention it, a nifty trick might be to use mutt's (very new) 
$my_* variables. Like so:

    set my_vsig=no
    message-hook .  'set crypt_verify_sig=yes'
    message-hook ~l 'set crypt_verify_sig=$my_vsig'
    macro pager \cP '<enter-command>set 
my_vsig=yes<enter><exit><display-message><enter-command>set my_vsig=no<enter>' 
'verify THIS sig'

Actually, after testing that, I'm definitely adding that to my muttrc. 
That's slick.

~Kyle
- -- 
They laughed at Einstein. They laughed at the Wright brothers. But 
they also laughed at Bozo the Clown.
                                                         -- Carl Sagan
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFE8L+vBkIOoMqOI14RAsWWAKDb4WZm4JXQq2SfbLtLP0Kak8o2wACdHjeE
2T3HEq/vhbe65pCDimjK8UM=
=BRdq
-----END PGP SIGNATURE-----