[ILUG] pgp-hooks...

From: kevin lyda (kevin+dated+1027472545.c7523b at domain ie.suberic.net)
Date: Fri 19 Jul 2002 - 02:02:29 IST


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 at domain (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 paulj at domain alphyra.ie
    gpg --no-verbose --batch --with-colons --list-keys paulj at domain 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 <paul at domain clubi.ie>::scESC:
    uid:f::::::::Paul Jakma <paul at domain hibernia.clubi.ie>:
    uid:f::::::::Paul Jakma (Home address) <paul at domain jakma.org>:
    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 <paulj at domain alphyra.ie>::scESC:
    uid:f::::::::Paul Jakma (Work) <paulj at domain itg.ie>:
    uid:f::::::::Paul Jakma <paulj at domain alphyra.com>:
    uid:f::::::::Paul Jakma <pj at domain itg.ie>:
    uid:f::::::::Paul Jakma <paul.jakma at domain itg.ie>:
    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 <paulj at domain alphyra.ie>::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

-- 
kevin at domain suberic.net     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


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:58 GMT