-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, May 8 at 12:23 PM, quoth Eric Patton: > Kyle Wheeler wrote: >> Thus, list messages will only be yellow if they aren't new, because if >> they're new, they match both rules, and the last one wins. >> >> Of course, you can always make complex patterns. For example: >> >> color index yellow default '~l ! ~N' >> >> Does that help? > > Yes, this last line you wrote was what I was referring to - I don't know what > this syntax (!) means, and how to construct complex coloring patterns in > general. > > Does '~l ! ~N' mean 'color list mail yellow if it is not new', or...?
Okay, color commands use the same matching syntax as searches and limits. In the manual and muttrc man page, this syntax is referred to as "simple patterns". Generally, it's a list of AND'd conditions. So '~l ~N' matches messages that match both ~l AND match ~N... i.e. that are both from mailing lists AND are marked new. An exclamation mark means "not", and is associated with the pattern that immediately follows it. Thus, '~l ! ~N' matches messages that match ~l AND match '! ~N', i.e. that are both from mailing lists AND are not marked new. You can get far more complex, of course. The description in the muttrc man page is quite good. ~Kyle - -- Computers are useless. They can only give you answers. -- Pablo Picasso -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iEYEARECAAYFAkoEVhUACgkQBkIOoMqOI15owwCgy0NPTWidx5Xizs/B0lsrFtOa kvUAn3vjg46jR2H8ifGjRD/tzioarvqp =TKh9 -----END PGP SIGNATURE-----