[neomutt-devel] New feature: colour attachments with regexps

Guillaume Brogi gui-gui at netcourrier.com
Sat Aug 20 16:29:53 CEST 2016

Hello all,

I added the capability of colouring attachments displayed in the pager
based on regexps, the same way the body can be coloured.
For me, this was necessary because GPGME displays signatures as
attachments and I wanted to good/bad signatures to pop.

The feature is available in devel/colour-attach. To use it, use
'attach_regexp' in your colour file. 'attachment' stays and defines the
default colour. A sample colour file, 'sample.colour.attach-regexp', is
available in contrib. Here is picture of it in action:

This is my first patch for neomutt. It was really easy, but I may have
made mistakes. If the feature interests you, please test it and report
any bug.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://mailman.neomutt.org/mailman/private/neomutt-devel-neomutt.org/attachments/20160820/b21a6b00/attachment.sig>

More information about the neomutt-devel mailing list