[note: i sent this to my local linux user's group.  i'm wondering if
anyone here has ideas on this?  i've searched around a lot on this and
haven't found anything.  i use the standard mutt with redhat 7.3 (Mutt
1.2.5.1i (2000-07-28)).  if people could cc me that would be great, but
i'll also skim the archives thing.  but essentially can i use pgp-hooks
autoselect pgp keys for specified users with mutt 1.x + gpg?  can i do
it without a patch?  if no to both, would a little perl wrapper to munge
the gpg output as i describe below actually work, or will it not work
on other keys?  thanks!]

ok, i just played with pgp-hooks in mutt.  as usual when experimenting
with pgp and mutt, i've enlisted our test admin paul jakma and our
emergency backup test admin, liam bedford[0].  sadly however i never
got past paul since there were too many errors (obviously on my side
as usual).

so this is the command mutt uses to list keys:
    gpg --no-verbose --batch --with-colons --list-keys %r
and this is the pgp-hook i have set:
    pgp-hook paulj@(itg\.ie|alphyra\.(ie|com)) 26034AA9

mutt asks if it should use key 26034AA9 and then it decides to make me
pick the key from the normal list.  only after selecting a key that way
does it work.  this is the sequence of commands:

    gpg --no-verbose --batch --with-colons --list-keys 26034AA9
    gpg --recv-keys [EMAIL PROTECTED]
    gpg --no-verbose --batch --with-colons --list-keys paulj@alphyra Paul Jakma

this is what the latter command (which is used to build the list) produces:

    pub:f:1024:17:D86BF79464A2FF6A:1998-10-21::64:f:Paul Jakma <[EMAIL PROTECTED]>::scESC:
    uid:f::::::::Paul Jakma <[EMAIL PROTECTED]>:
    uid:f::::::::Paul Jakma (Home address) <[EMAIL PROTECTED]>:
    sub:f:2048:16:625C9FD229C725E9:1998-10-21::64::::e:
    sub:f:2048:20:A8A077E4D602BC59:2000-07-04::64::::esc:
    sub:f:4096:20:B52EE1206A906D73:2000-07-05::64::::esc:
    pub:f:1024:17:E26517E626034AA9:2000-07-04:2004-07-11:72:f:Paul Jakma 
<[EMAIL PROTECTED]>::scESC:
    uid:f::::::::Paul Jakma (Work) <[EMAIL PROTECTED]>:
    uid:f::::::::Paul Jakma <[EMAIL PROTECTED]>:
    uid:f::::::::Paul Jakma <[EMAIL PROTECTED]>:
    uid:f::::::::Paul Jakma <[EMAIL PROTECTED]>:
    sub:f:1024:16:777344AD45F7485F:2000-07-04:2004-07-11:72::::e:
    sub:f:2048:20:B54868CCB0B88E06:2000-07-05:2004-07-11:72::::esc:
    sub:f:4096:20:F960636AB35EAE31:2000-07-26:2004-07-11:72::::esc:

the first set of keys can be dismissed.  the annoying thing is that
the list is as long as the number of uid lines times the number of
pub/sub lines for each key.  i changed the list command to spit out
various versions of the above.  once i did that it selected correctly
the first time:

    pub:f:4096:20:F960636AB35EAE31:2000-07-26:2004-07-11:72:f:Paul Jakma 
<[EMAIL PROTECTED]>::esc:

which merges the pub:f:1024 line with the sub:f:4096 line.  now,
newer versions of mutt apparently have this solved.  is this true?
and is anyone using mutt and pgp-hooks just fine?  how are your pgp_
commands set?

kevin

[0] my lame reference to dave barry:
    http://pottedmeat1.tripod.com/pmfp/id9.html

-- 
[EMAIL PROTECTED]     that a believer is happier than a skeptic is no more to
fork()'ed on 37058400    the point than the fact that a drunken man is happier
meatspace place: home       than a sober one. the happiness of credulity is a
http://ie.suberic.net/~kevin   cheap & dangerous quality -- g.b. shaw

Reply via email to