Re: Coloring signature information

2022-06-06 Thread Kevin J. McCarthy

On Mon, Jun 06, 2022 at 08:05:51PM +0100, Chris Narkiewicz via Mutt-users wrote:

On Sun, Jun 05, 2022 at 06:56:51PM -0700, Kevin J. McCarthy wrote:

Those are included in the 'attachment' color object.


I tried color attachment bg fg
but it colors '[-- Begin signature information --]' string.

What I'm trying to achieve, is to use green color for good
signatures, gray for unknown and red for bad signatures.


Ah, sorry I didn't read your question closely enough.

No, there isn't a built-in way to do that.  You might be able to code 
something yourself with $display_filter and $allow_ansi, but you'd need 
to be extra careful about spoofing.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Coloring signature information

2022-06-06 Thread Chris Narkiewicz via Mutt-users
On Sun, Jun 05, 2022 at 06:56:51PM -0700, Kevin J. McCarthy wrote:
> > [-- Begin signature information --]
> > Good signature from: Kevin J. McCarthy 
> >created: Sun Jun  5 20:45:27 2022
> > [-- End signature information --]
> > 
> > Is there a way to set the color of this block of text?
> 
> Those are included in the 'attachment' color object.

I tried color attachment bg fg
but it colors '[-- Begin signature information --]' string.

What I'm trying to achieve, is to use green color for good
signatures, gray for unknown and red for bad signatures.

So I want to color the text in between
'[ -- Begin signature from ... --]'
and '[-- End signature information --]'

Best regards,
Chris Narkiewicz



signature.asc
Description: PGP signature


Re: Coloring signature information

2022-06-05 Thread Kevin J. McCarthy

On Sun, Jun 05, 2022 at 10:32:34PM +0100, Chris Narkiewicz via Mutt-users wrote:

When receiving email with GPG signature, mutt puts a status
at the top of the message pager:

[-- Begin signature information --]
Good signature from: Kevin J. McCarthy 
   created: Sun Jun  5 20:45:27 2022
[-- End signature information --]

Is there a way to set the color of this block of text?


Those are included in the 'attachment' color object.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature