Let's say the following msglist rules are defined:
# default msglist_* styles
msglist_default.fg = "#d3d3d3"
msglist_answered.fg = "#555555"
msglist_flagged.fg = "#00ff00"
msglist_deleted.fg = "#555555"
msglist_result.fg = "#ffaa00"
msglist_marked.fg = "#ffff00"
msglist_*.selected.reverse = false
msglist_*.selected.bg = "#d3d3d3"
msglist_*.selected.fg = "#000000"
# dynamic msglist_* styles
msglist_default.From,~Robin.fg = "#ff0000"
msglist_answered.From,~Robin.fg = "#555555"
msglist_flagged.From,~Robin.fg = "#00ff00"
msglist_deleted.From,~Robin.fg = "#555555"
msglist_result.From,~Robin.fg = "#ffaa00"
msglist_marked.From,~Robin.fg = "#ffff00"
Which means that messages under the cursor should always be displayed as black on grey (#000000
on #d3d3d3
). However, if a selected message is colored according to the dynamic rule shown above AND is answered (#555555
) flagged (#00ff00
), a result of a search (#ffaa00
) or marked (ffff00
, yellow) -- then its foreground color will stay as defined by the corresponding dynamic sub-rule.
Screenshots to illustrate: