On Jan 08, Vincent Lefevre [[EMAIL PROTECTED]] wrote: > On Mon, Jan 07, 2002 at 10:16:58 -0800, Gary Johnson wrote: > > Why not just 'unset pgp_verify_sig'? That's what I do. > > But is there an option to ask Mutt not to display garbage like > > [-- La sortie PGP suit (heure courante : Tue Jan 8 00:13:02 2002) --] > gpg: Avertissement: l'utilisation de la m?moire n'est pas s?re ! > gpg: Signature faite Mon Jan 7 20:14:36 2002 CET avec une cl? DSA ID F009764F > gpg: Impossible de v?rifier la signature: cl? publique non trouv?e > [-- Fin de sortie PGP --] > > [-- Les donn?es suivantes sont sign?es --] > > and > > [-- Fin des donn?es sign?es --] > > ? > > The "s" in the index is sufficient for me if I want to know if a > message is signed.
I do believe there are some patches out there to limit what is shown; I'm not sure what exactly they do. Regardless, if you turned off pgp_verify_sig, you would not see the "garbage" above, just the "s" in the index. I've actually just been working on some macros to handle this for myself the last day or two. I 100% believe that all mails should be signed whenever possible to establish what "normal" behaviour is, etc., but that doesn't mean to me that all those sigs need to be verified as they come in. If I need to verify something, I can just verify that one thing, and hopefully I have a history of mails from that person available (either locally or in list archives) that has left a trail of signatures I can look into if I need to. Anyway, this is what I have right now: -------------------------------------------------- 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" -------------------------------------------------- I don't think I'm done with it yet, but the idea is: - normally, don't verify any sigs (this just leaves the "s" in the index) - use message-hook to always verify my own sigs (I may as well know immediately if something is botching those up on the wire)* - set up a macro ^v in the index and pager to verify the sig for any given message as needed It does the job, but it seems rather unnecessarily kludgey, especially the redefining the message-hooks all the time. But I appear to need that, since right now I don't see any other way to make the default no-verify message-hook not be active while the macro is running. The good news is I'm not really doing it "all the time", since firing those macros should be a rare occurance. Anyone have any ideas on this? This one will completely stop working if I need to add any other message-hooks, since unhook apparently is (more or less) all or none. Having a verify-sig function that operated independently of pgp_verify_sig and that could just be bound would be ideal, but I don't think there is one currently. * (for those too lazy^H^H^H^Hbusy to check TFM, ~g matches messages with signatures, and ~P consults $alternates to match messages from the mutt user)
msg22532/pgp00000.pgp
Description: PGP signature