Re: PGP: macro to fetch keys from keyserver?

2002-04-11 Thread David T-G

Dominik --

...and then Dominik Mierzejewski said...
% 
% On Wednesday, 10 April 2002, David T-G wrote:
%  % I would like to define a keystroke that fetches gpg keys for me from
%  % signed messages, like
%  % 
%  % gpg --keyserver www.keyserver.net --recv-keys 0x$KEY
%  % 
%  % But how can I get/define $KEY?
%  
%  Why reinvent the wheel?  Just use $pgp_getkeys_command as found in
%  your_pgp-gpg_version.rc in the contrib directory in the tarball.
% 
% Funny how it never worked for me. Could you quote yours? Or at least
% one that's working and doesn't invoke some script no-one has ever
% heard of?

No problem.  This used to work for me before I started playing with
folder-hooks, and it still works even though it doesn't put the key into
the target ring as I'd like (I have lots of keyrings).  I may have
to set $p_g_c to point to /dev/null instead of the real options file;
I haven't played with it yet (the catch-all-keys ring is listed last in
my options file, and gpg appears to use whatever is last if it has its
options file to check).

  [zero] [7:31am] ~  grep pgp_getkeys_command .mutt/gpg.rc
  ###set pgp_getkeys_command=gpg --recv-keys --keyring pubring.catch-all-keys.gpg %r 
2/dev/null
  folder-hook . 'set pgp_getkeys_command=gpg --recv-keys --keyring 
pubring.catch-all-keys.gpg %r 2/dev/null'
  #folder-hook F.mutt 'set pgp_getkeys_command=gpg --recv-keys --keyring 
pubring.mutt.gpg %r 2/dev/null'
  folder-hook F.mutt 'set pgp_getkeys_command=gpg --options /dev/null --no-verbose 
--keyring pubring.mutt.gpg --recv-keys %r 2/dev/null'
  folder-hook F.freenet 'set pgp_getkeys_command=gpg --recv-keys --keyring 
pubring.freenet.gpg %r 2/dev/null'
  folder-hook F.taxinfo 'set pgp_getkeys_command=gpg --recv-keys --keyring 
pubring.misclists.gpg %r 2/dev/null'

  [zero] [7:31am] ~  grep keyserver .gnupg/options
  keyserver wwwkeys.eu.pgp.net
  #keyserver wwwkeys.us.pgp.net
  #keyserver wwwkeys.uk.pgp.net
  #keyserver wwwkeys.pgp.net
  #keyserver certserver.pgp.com
  #keyserver pgp.ai.mit.edu
  #keyserver keyserver.net
  #keyserver search.keyserver.net
  #keyserver pgp.dtype.org
  #keyserver gnv.us.ks.cryptnet.net


%  
% -- 
% The Universe doesn't give you any points for doing things that are easy.
% -- Sheridan to Garibaldi in Babylon 5:The Geometry of Shadows
% Dominik 'Rathann' Mierzejewski rathann(at)rangers.eu.org


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg27023/pgp0.pgp
Description: PGP signature


PGP: macro to fetch keys from keyserver?

2002-04-10 Thread Andre Berger


--liOOAslEiF7prFVr
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline

Hi,

I would like to define a keystroke that fetches gpg keys for me from
signed messages, like

gpg --keyserver www.keyserver.net --recv-keys 0x$KEY

But how can I get/define $KEY?

-Andre


--liOOAslEiF7prFVr
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8tIEaWkhBtALlJZ0RAn7HAKC3y26UwUYSQgfXN3KIaR/61aKgzQCfZMlr
YW4bt4aRsiWWAGznw0VVp4s=
=i0cr
-END PGP SIGNATURE-

--liOOAslEiF7prFVr--



Re: PGP: macro to fetch keys from keyserver?

2002-04-10 Thread David T-G

Andre --

...and then Andre Berger said...
% 
% Hi,

Hello!


% 
% I would like to define a keystroke that fetches gpg keys for me from
% signed messages, like
% 
% gpg --keyserver www.keyserver.net --recv-keys 0x$KEY
% 
% But how can I get/define $KEY?

Why reinvent the wheel?  Just use $pgp_getkeys_command as found in
your_pgp-gpg_version.rc in the contrib directory in the tarball.


% 
% -Andre
% 


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg26988/pgp0.pgp
Description: PGP signature


Re: PGP: macro to fetch keys from keyserver?

2002-04-10 Thread Dominik Mierzejewski

On Wednesday, 10 April 2002, David T-G wrote:
 % I would like to define a keystroke that fetches gpg keys for me from
 % signed messages, like
 % 
 % gpg --keyserver www.keyserver.net --recv-keys 0x$KEY
 % 
 % But how can I get/define $KEY?
 
 Why reinvent the wheel?  Just use $pgp_getkeys_command as found in
 your_pgp-gpg_version.rc in the contrib directory in the tarball.

Funny how it never worked for me. Could you quote yours? Or at least
one that's working and doesn't invoke some script no-one has ever
heard of?
 
-- 
The Universe doesn't give you any points for doing things that are easy.
-- Sheridan to Garibaldi in Babylon 5:The Geometry of Shadows
Dominik 'Rathann' Mierzejewski rathann(at)rangers.eu.org



Re: PGP: macro to fetch keys from keyserver?

2002-04-10 Thread Rocco Rutte

Hi,

* Andre Berger [04/10/02 20:14:51 CEST] wrote:
 I would like to define a keystroke that fetches gpg keys for me from
 signed messages, like

 gpg --keyserver www.keyserver.net --recv-keys 0x$KEY

 But how can I get/define $KEY?

It depends on what your goal is. If you want gpg to automatically import
keys if a key is missing, you only have to put your keyserver in
~/.gnupg/options. If you want to do it selectively on a per message
basis, there're several ways.

1) You could write a macro piping the message to GnuPG (which will be
   ignored). Don't put enter at the end of the line but '0x'. You then
   would have to type the key id manually.

2) You could - the complicated way - try some script in conjunction with
   the display_filter variable to do what you want.

Your choice. ;-)

But I think you want to simply add the keyserver to your GnuPG config
file. For use with pgp you (depending on the version used) have to set
$pgp_getkeys_command in your .muttrc.

HTH,

Cheers, Rocco.



msg27002/pgp0.pgp
Description: PGP signature


Re: PGP: macro to fetch keys from keyserver?

2002-04-10 Thread Rocco Rutte

Hi,

* David T-G [04/10/02 19:37:40 CEST] wrote:
 ...and then Andre Berger said...
 % I would like to define a keystroke that fetches gpg keys for me from
 % signed messages, like
 % 
 % gpg --keyserver www.keyserver.net --recv-keys 0x$KEY
 % 
 % But how can I get/define $KEY?

 Why reinvent the wheel?  Just use $pgp_getkeys_command as found in
 your_pgp-gpg_version.rc in the contrib directory in the tarball.

I guess he's using GnuPG.

| pdmef@klaus~$ grep getkeys ~/tmp/builds/mutt/contrib/gpg.rc
| # set pgp_getkeys_command=pkspxycwrap %r
| pdmef@klaus~$

Cheers, Rocco.



msg27003/pgp0.pgp
Description: PGP signature