Re: Multiple color rules for index?
- To: mutt-users@xxxxxxxx
- Subject: Re: Multiple color rules for index?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 8 May 2009 10:56:05 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=kHtA550NxQyi+9d5DhM57Zf0yY8=; b=WyYb bmxstHYXAqMZQ0Tfr7MXwMoiLUPKyiVHhRAgSH0B03PeQQ/BccN4KF8soI71jkny XL/OU15Xjupgl/g97PHuBvc8cPjo0dCt0Xu5U3yRTgzDsBTfjEHGbRcmCqHUYK6H JmZYgD6GESLPOWlJaVTRemYzaH8a3r0K0A5jYxM=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=Y9THfB738tXpjHaQqzb4+3M/luOVsTaW6bsKbvtGYRX3nPl7rW62vk5HteyOZUL837Kx0jtvA7bzxcRP5BA3jN4woljCSxYIHOKQbLRsElvk/emr70onzDIzPdMCSL8e4JBrt7f0AymDn8QKwhYg3nWNfHlbZbQSSMB5fFwRXP4=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090508152343.GA4114@epatton-desktop>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090508135625.GC5181@epatton-desktop> <20090508142713.GW2443@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20090508152343.GA4114@epatton-desktop>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-29)
-----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-----