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