Hi Michael!

On So, 07 Sep 2014, Michael Treibton wrote:

> I'm trying to see if it's possible to color threads in a certain way.
> At the moment I have this in my .muttrc:
> 
>     color index green default "~v"
> 
> Which very nicely makes the *top*-level email in a given thread green.
> 
> however, is it possible to get mutt to also assign a color to the
> other emails in that thread somehow?  Might it also be possible to
> give the top-level thread a different color to the other emails in
> that thread?

Since ~v only works for collapsed threads, I would go with something 
different, e.g. check for the existence of In-Reply-To or References 
header:

:color index green default "!(~h In-Reply-To:|~h References)"  # first mail of 
a thread
:color index blue default "(~h In-Reply-To:|~h References)"    # Mails within a 
thread

Note, however, that this might slow down loading a mailbox considerably 
(especially, if you use IMAP, because mutt then has to fetch more data 
from the IMAP server. This doesn't seem to matter for the References and 
In-Reply-To headers, according to the documentation, but is something 
one wants to keep in mind, before making a decision on what header to 
color)

> I'm trying to make things easier on the eye in terms of threading, and
> am trying to use colors to do it.
> 
> i wonder if it's possible to also assign random/different colors to
> each thread in mutt?  that'd be cool.

I don't think this is possible, currently.

regards,
Christian
-- 
The Second Law of Thermodynamics:
        If you think things are in a mess now, just wait!
                -- Jim Warner

Reply via email to