Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.