* Michael Elkins <m...@sigpipe.org> [2012-12-21 10:10:55 -0800]: > On Fri, Dec 21, 2012 at 06:00:12PM +0100, Marco wrote: > >This hook should only kick for mailing lists messages, which are > >stored in mail folders containing “Lists”. However, this > >highlighting applies to all messages in all folders once I've > >entered a mailing list folder. I tried to undo the setting using > > > > folder-hook . \ > > "color index white default ." > > > >but it did not work. Still messages in all folders are highlighted. > >How do I either apply this setting only to mailing lists or undo the > >setting for other folders? > > You need to use the 'uncolor' command to remove the pattern. What > is happening with your folder-hook above is you are just adding an > additional pattern, and mutt will execute all hooks which match. > You want something like this: > > set my_pat="color index green default \"~p | ~b 'Marco|netuse' | ~s > 'Marco|netuse'\"" > folder-hook . un$my_pat > folder-hook Lists $my_pat > > > me
This is what I use - borrowed from Rado's muttrc shown on the wiki: folder-hook . '\ [ ... ] uncolor index "~x example.com" ;\ [ ... ] \ ' folder-hook mailbox '\ [ ... ] color index black green "~x example.com" ;\ [ ... ] \ ' This highlights messages from me in the threads i've responded to, using the colours i've shown above. Obviously you can chose the colours you would like to use. Hope that helps. Jamie.