Hello Christian, Thanks for hint! But I ended up using this, with a custom filter: http://larve.net/people/hugo/2002/04/mutt-display-filter
The custom filter is this: { # PGP output fixing -preBodyFilter => sub { my ($body) = @_; my $i=0; my $idx = -1; my $offset = 0; while($i < $#$body){ my $line = @$body[$i]; if(@$body[$i] =~ /\[-- PGP output follows/){ @$body[$i] =~ s/\[-- PGP output follows/\[-- PGP output suppressed (press <Esc-0> to show full output)/; $idx = ++$i; while(@$body[$i] !~ /\[-- End of PGP output --\]\s*/){ $i++; $offset++; } splice @$body, $idx, $offset + 1; last; } $i++; } } } It's a rather crude approach, but it does the job! --Óscar On Tue, Jul 30, 2013 at 10:11:50PM +0200, Christian Brabandt wrote: > Hi Óscar! > > On So, 28 Jul 2013, Óscar Pereira wrote: > > > Dear all, > > > > Is there a way to toggle the output from gpg, when viewing signed > > and/or encrypted messages? In particular, I'm referring to the > > information about the key(s), which can be quite verbose... > > > > Could this be done with some scripting (i.e. without hacking the > > source code?) > > look into the display_filter setting and possibly also t-prot > (http://www.escape.de/~tolot/mutt/) which can be used as display filter > for mutt and I think, it does some gpg cleaning (I am not sure, it's too > long ago, that I used it). > > > regards, > Christian > -- > Absolutum obsoletum. (If it works, it's out of date.) > -- Stafford Beer -- Óscar Pereira | https://erroneousthoughts.org Rules of Optimisation: Rule 1: Don't do it. Rule 2 (for experts only): Don't do it yet. -- M.A. Jackson
pgp5FoR37vEGw.pgp
Description: PGP signature