From e4b581c94488406f16b2fa40b717b571c4a9577c Mon Sep 17 00:00:00 2001 From: Guillaume Brogi Date: Wed, 7 Sep 2016 11:13:01 +0200 Subject: [PATCH] Add docs on attach_headers --- doc/manual.xml.head | 97 +++++++++++++++++++++++++++++++++ doc/muttrc.attach-headers-color | 19 +++++++ doc/vimrc.attach-headers-color | 5 ++ 3 files changed, 121 insertions(+) create mode 100644 doc/muttrc.attach-headers-color create mode 100644 doc/vimrc.attach-headers-color diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 81d681478..5d430a16f 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -9068,6 +9068,103 @@ please have a look at the mixmaster documentation. + + attach-headers-color Patch + Color attachment headers using regexp, just like mail bodies + + + Patch + + + To check if Mutt supports attach-headers-color, look for + patch-attach-headers-color in the mutt version. + See: . + + + + Dependencies: + mutt-1.7.0 + + + This patch is part of the NeoMutt Project. + + + + Introduction + + + This patch allows specifying regexps to color attachment headers just like the mail body would. + The headers are the parts colored by the attachment color. Coloring them is + useful to highlight the results of GPGME's signature checks or simply the mimetype or size of + the attachment. Only the part matched by the regexp is colored. + + + + + + Usage + + + The attach_headers color should be used just like the body + color. + + + +color attach_headers foreground background pattern + + + + + Muttrc + +# Color if the attachment is autoviewed +color attach_headers brightgreen default "Autoview" + +# Color only the brackets around the headers +color attach_headers brightyellow default "^\\[--" +color attach_headers brightyellow default "--]$" + +# Highlight the mime type and size +color attach_headers green default "Type: [a-z]+/[a-z]" +color attach_headers green default "Size: [0-9\.]+[KM]" + +# Color GPGME signature checks +color attach_headers brightgreen default "Good signature from.*" +color attach_headers brightred default "Bad signature from.*" +color attach_headers brightred default "BAD signature from.*" +color attach_headers brightred default "Note: This key has expired!" +color attach_headers brightmagenta default "Problem signature from.*" +color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!" +color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner." +color attach_headers brightmagenta default "can't handle these multiple signatures" +color attach_headers brightmagenta default "signature verification suppressed" +color attach_headers brightmagenta default "invalid node with packet of type" + + + + + See Also + + + NeoMutt Project + Color command + Regular Expressions + + + + + Known Bugs + None + + + + Credits + + Guillaume Brogi gui-gui@netcourrier.com + + + + Compressed Folders Patch Read from/write to compressed mailboxes diff --git a/doc/muttrc.attach-headers-color b/doc/muttrc.attach-headers-color new file mode 100644 index 000000000..b13b84ad7 --- /dev/null +++ b/doc/muttrc.attach-headers-color @@ -0,0 +1,19 @@ +# Example Mutt config file for the 'index-color' feature. + +# Highlight the mime type and size +color attach_headers green default "Type: [a-z]+/[a-z]" +color attach_headers green default "Size: [0-9\.]+[KM]" + +# Color GPGME signature checks +color attach_headers brightgreen default "Good signature from.*" +color attach_headers brightred default "Bad signature from.*" +color attach_headers brightred default "BAD signature from.*" +color attach_headers brightred default "Note: This key has expired!" +color attach_headers brightmagenta default "Problem signature from.*" +color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!" +color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner." +color attach_headers brightmagenta default "can't handle these multiple signatures" +color attach_headers brightmagenta default "signature verification suppressed" +color attach_headers brightmagenta default "invalid node with packet of type" + +# vim: syntax=muttrc diff --git a/doc/vimrc.attach-headers-color b/doc/vimrc.attach-headers-color new file mode 100644 index 000000000..0fd9ef9c6 --- /dev/null +++ b/doc/vimrc.attach-headers-color @@ -0,0 +1,5 @@ +" Vim syntax file for the mutt color-attach patch + +syntax keyword muttrcColorField contained attach_headers + +" vim: syntax=vim -- 2.40.0