As an additional data point: in one of my other rcfiles, I am using the
command "uncolor index *" without problems (no quotes in the rcfile). So
it seems the problem only crops up when trying to do it inside a
folder-hook.
Also, another question. I'm trying to get messages in an index to
colorize when they are from me; i.e. when the From field in the index is
"To *" instead of the sender's (my) name. These are what I have tried so
far:
color index cyan default To
(note, in the above, there is a space at the end: "To "
color index cyan default "To "
color index cyan default 'To '
color index cyan default (To )
The first one highlighted *other* messages with that string (but not the
one I wanted, oddly enough, the second and third didn't work, and the last
generated an error about too many parameters. How can I color a message
in the index where the From field begins with "To "? Or, better yet, is
there a special token to target them, such as using ~N to specifically
color New messages?
On Thu, Aug 24, 2000 at 02:01:34AM -0500, John Buttery wrote:
> I'm having some trouble removing all color patterns in a
> folder-hook; this procedure is documented in the manual but I must be
> tripping over something trying to follow the directions. The object here
> is to set a default folder-hook that removes all body color patterns
> (because I want different strings colored depending on folder, etc.). I
> would also like to do the same thing for index and header, but I assume
> the answer to the first question is also the answer to those two. Anyway,
> here's the relevant passage from the book of mutt(1), section 3.7:
>
> Note: The uncolor command can be applied to the index object only. It
> removes entries from the list. You must specify the same pattern specified
> in the color command for it to be removed. The pattern ``*'' is a special
> token which means to clear the color index list of all entries.
>
> And now, the relevant passage from ~/.mutt/rc.folderhook
>
> folder-hook . uncolor body *
> #folder-hook . uncolor header *
> #folder-hook . uncolor index *
>
> The other two lines are commented out on purpose, I only like to have
> one thing broken at a time. :)
> And, finally, the relevant passage from the Tome Of Mutt Errors(tm):
>
> uncolor: command valid only for index object
>
> Just to head off effort duplication, these are the other permutations
> I've tried, with identical results:
>
> folder-hook . uncolor body
> folder-hook . uncolor body "*"
> folder-hook . uncolor body \*
> folder-hook . uncolor body "\*"
>
> Any ideas?