Mutt pager/index view, and colour scheme

I had thought that my use of mutt was completely ordinary, but after pasting a screenshot of it:

screenshot of my mutt

into IRC for unrelated reasons, a number of people asked how I set it up like that. The answer is I read the manual!

But for those not interested in reading the manual, the image is of the pager view, i.e. what is used to view an individual message. The top few lines show a view of the index, i.e. the list of messages in the current folder. People have referred to this as a split window but it isn’t really as there is no way to make it “active” and give it commands that you would use in the index. It’s just for display purposes, but it does help to see where you are in the thread.

Adding:

set pager_index_lines=10

to your .muttrc will dedicate the top 10 lines of your pager view to this view of the index.

The colour scheme shown is determined by the following lines:

color header cyan black .
color header yellow black ^From
color header yellow black ^Subject
color body yellow black [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+
color body yellow black (http|ftp)://[_a-zA-Z0-9\?\=\&\@\%\#\:\,\./~\-]+
color quoted green black
color signature cyan black
color attachment yellow black
color tree white black
color indicator black cyan
color status yellow blue
color tilde blue black
color normal white black
color index green black ~N

The lines with regular expressions just pick out things like email addresses and URLs. The last line makes new (unread) mails stand out in the index view. The regular expressions could be improved but really, they work well enough for me. I haven’t edited this part of the config since 2005!