<<< Date Index >>>     <<< Thread Index >>>

Re: hide pgp or smime signatures ?



On 2007-10-09, Nicolas KOWALSKI <niko@xxxxxxxxxxxxxxxxx> wrote:
> Hello,
> 
> Is it possible to not display the pgp or smime signature at all in the 
> pager ?
> 
> I have set crypt_verify_sig=no in my ~/.muttrc, but obviously this is 
> not sufficient.

I set 'display_filter' to a script that cleans up a number of 
message artifacts including such signatures.  Here is part of it.

----------------------------- cut here -----------------------------
sed -e '
        /^\[-- Autoview using .* --]$/d
        /^][0-9;]*\[-- Autoview using .* --]$/d
        /^\[-- Attachment .* --]$/d
        /^][0-9;]*\[-- Attachment .* --]$/d
        /^\[-- Type: .* --]$/d
        /^][0-9;]*\[-- Type: .* --]$/d
' |

perl -0777 -pe '
    s/\n-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n+/\n/;
    s/\n-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n+/\n/;
    s/\n-----BEGIN PGP SIGNATURE-----\nVersion: (.|\n)*?\n-----END PGP 
SIGNATURE-----\n/\n/;
'
--------------------------------------------------------------------

It could be neater, but it has grown over the years as the need 
arose.

Regards,
Gary