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

Coloring matched text in headers



Hello.

I've searched the web, asked on another forum, and searched the
marc.theaimsgroup.com list archives and I haven't found a solution to
what I want. Actually, I don't think it is currently possible. We'll
see.

What I'd like to [be able to] do is to add color to my headers but
only to the text that matches a regexp. In particular, I'd like for my
email address[es] to show up in blue when they are in the To or Cc
headers. Currently, I have the following in my .muttrc:

color header blue default "(user@xxxxxxxxxxx|user@xxxxxxxxxxx)"

This works to make the whole header turn blue when it contains
"user@xxxxxxxxxxx" or "user@xxxxxxxxxxx", but this isn't really the
behavior I want.

I can get basically what I want, but in the body, by doing:

color body blue default "(user@xxxxxxxxxxx|user@xxxxxxxxxxx)"

However, nothing I've seen suggests that this is possible in the headers.

If this isn't possible now, I think it would be a nice feature. Color
only the part of the header that matches the regexp, like it does in
the body. If you want to color the whole line (like it does
currently), use dot-star (.*). This would also allow people to only
add color to the words From:, To:, Cc, Subject:, etc.

Thanks.

-Andy