On 7 September 2014 13:15, Christian Brabandt <cbli...@256bit.org> wrote: > Hi Michael!
Hi Christian. Thank you for your fast response! > 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 understand. Here's what I have at the moment (adapted to your recommendations): color index cyan default "~N !~D" color index white default "(~P !~D) | (~v ~(~P !~D))" color index yellow default "(~F !~D) | (~v ~(~F !~D))" color index green default "!(~h In-Reply-To:|~h References)" # first mail of a thread color index magenta default "(~h In-Reply-To:|~h References)" # Mails within a thread Before, with just "color index green default "~v"", I could easily see collapsed threads, with messages not in a thread showing as white (which I think is also the "default" color). With your changes, all messages are showing as green, whether they're in a thread or not. I think this is because you're treating the lack of either In-Reply-To or References in the header as an indication of the first email? Is there anyway to improve on this such that if there's at least one mail in reply to this, that it's coloured green, otherwise leave it alone? TIA, Michael