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

Re: color precedence



* René Clerc <rene@xxxxxxxx> :
> * Troy Piggins <troy@xxxxxxxxx> [20-09-2005 15:24]:
> 
> > This is really pedantic, but I just can't get this to work the
> > way I want.  I have some folder-hooks that set colors for mails
> > from me, and depending on what address the mail was sent to etc.
> 
> [...]
> 
> > My (pedantic) frustration is that if I try to tag a flagged or
> > new mail, it won't change to the black/yellow.
> >
> > What am I missing?
> 
> You're missing the fact that all color directives are executed in
> the order in which they have been specified in your configuration.
> The rule that matches "last" wins.

That's what I thought should be happening, but it doesn't appear to
be the case.  I have tried with the "color index yellow black ~T"
before, after, last line, first line, everywhere.  Still doesn't
seem to be able to override the flag/new colors.

I know that folder-hooks are executed in order and last one wins,
but wasn't sure about the "color" command.  Folder-hooks are  only
executed when you change to a certain folder.  But you tag messages
when you are already in a folder, so that doesn't really help me.

I just had an idea that I could bind "t" to a macro instead of
just the default "tag" command.  The macro could "uncolor index ~F"
first, then tag, and probably the correct color would be seen.  But
I would think I would lose all flag colors in the whole mailbox,
not just the one under the cursor... sigh

-- 
Troy Piggins - Been a novice linux user since 1998
             - When do I become an expert?
RedHat 9: mutt 1.5.9i, procmail 3.22, postfix 2.2.4, slrn 0.9.8.1,
          vim 6.1, kernel 2.4.20-31.9