On Jan 24, Brian Clark [[EMAIL PROTECTED]] wrote:
> * [EMAIL PROTECTED] [Jan 24. 2002 07:26]:
> I was trying to get something similar to work yesterday. No one finds it
> odd that one can't check a single signature? I've given up, and just set
> pgp_verify_sig to ask-no, but I have to hit Enter twice when entering a
> message. I'd rather set it to 'no' and set pgp_verify_sig with hooks for
> _specific_ people, then use some command to check individual signatures
> for anyone else. :-\

I use this:

set pgp_verify_sig=no

message-hook . 'set pgp_verify_sig=no'
message-hook '~g ~P' 'set pgp_verify_sig=yes'

macro index \Cv "<enter-command>unhook message-hook<enter><enter-command>set 
pgp_verify_sig=yes<enter><display-message><enter-command>set 
pgp_verify_sig=no<enter><enter-command>message-hook . 'set 
pgp_verify_sig=no'<enter><enter-command>message-hook '~g ~P' 'set 
pgp_verify_sig=yes'<enter>" "verify message signature"

macro pager \Cv "<enter-command>unhook message-hook<enter><enter-command>set 
pgp_verify_sig=yes<enter><exit><display-message><enter-command>set 
pgp_verify_sig=no<enter><enter-command>message-hook . 'set 
pgp_verify_sig=no'<enter><enter-command>message-hook '~g ~P' 'set 
pgp_verify_sig=yes'<enter>" "verify message signature"

This makes it auto-check my messages, any others require a keystroke.

This is obviously very clumsy, and would become unusable if I had more
message hooks than this, but it's the best I could come up with, and it
works fine.

I was digging around the source last night to see how hard this would be to
make a patch for, but it looks to me like all the sig checking is
specifically handled while displaying a message, so it wouldn't be as easy
as one might think.

Attachment: msg23668/pgp00000.pgp
Description: PGP signature

Reply via email to