Re: stripping gpg output
Hi,
* Thomas Stivers (stivers_t@xxxxxxxxxxxxxxxxx) [2003-09-22 17:52]:
[ strip gpg output ]
> in .muttrc
>
> macro pager <F5> :set\ display_filter=".mutt/gpgfilter.sh"<enter> \
> strip PGP output
> macro pager <F6> :set\ display_filter=""<enter> show PGP output
>
> in .mutt/gpgfilter.sh
>
> #!/bin/sh
> sed '/\[-- PGP output follows --\]/,/\[-- End of PGP output --\]/d'
I use 'egrep' to blind out the GPG - output.
,----[ ~/.mutt/mutt.bindings ]
| macro pager \e4 '<enter-command>set display_filter="/bin/sh
$HOME/bin/gpg-wrap.sh"<enter><exit><display-message>'
| macro pager \e5 '<enter-command>unset
display_filter<enter><exit><display-message>'
`----
and 'gpg.wrap.sh' look like follows (it's *one* line!):
,----[ $HOME/bin/gpg-wrap.sh ]
| #!/bin/sh
| egrep -iv "^gpg:(.*please*|.*Signature*|.*There*|.*Good
| signature*|.*WARNING|.*aka*)|\[--.*The
| following.*--\]|\[[--.*PGP.*\]|\[GNUPG:\]
| (.*SIG_ID*|.*VALIDSIG*|.*TRUST_ULTIMATE)"
`----
It's not perfect but it works ;)
--
Gosh that takes me back... or is it forward? That's the trouble with
time travel, you never can tell."
-- Doctor Who "Androids of Tara"