Jeff Krueger muttered:
> color header   cyan       default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
> color body   cyan       default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
> 
> The intent is to color just e-mail addresses differently from the
> rest of the line.  It works fine in the body, even in quoted text -
> the address is in cyan and the rest of the line is whatever color it
> is supposed to be.
> 
> In the header, however, this colorizes the entire line cyan.  Am I defining
> this improperly somehow, or is in-line coloring not yet available?

My guess is that the object "header" always means the whole line.
Unfortunatly I can't prove this from the code since I don't know
enougth C :-(
However, in your original posting
color header green default Tue
matches the whole Date: line. (The Date-Header if you want to)

Date: Tue, 06 Jun 2000 18:16:32 -0700

You could call this a feature since normally you'll want to highlight a
whole header line but I tend to call it a bug :)
On the other hand I would think that the same code is used for
hdr_order, ignore etc. and here it's very nice that only need to
specify Date: and not ^Date:.+$

HTH,

Michael
-- 
PGP-fingerprint: DECA E9D2 EBDD 0FE0 0A65  40FA 5967 ACA1 0B57 7C13

Reply via email to