Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to configure Mutt so that the message index shows some messages in a different colour?

For example, if a message is received with a subject line matching the pattern ^Foo, set that message to appear yellow in the inbox list.

share|improve this question
up vote 3 down vote accepted

That's possible. First you define the colour and pattern to match:

set my_pattern = "color index green black ~s ^Foo"

Then you set this pattern as a folder-hook for the particular folder and undo it for all other folders:

folder-hook .      un$my_pattern
folder-hook .Inbox $my_pattern
share|improve this answer
Wonderful, thank-you. I am using mutt 1.5.21 on Ubuntu Linux 12.04 LTS, and needed to set my_pattern to 'color index green black "~s \"^Foo\""' and change .Inbox in the second folder-hook directive to .INBOX or ""!"" for it to work. – Steve HHH Feb 27 '13 at 21:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.