Re: unignore and regular expression help needed
- To: mutt-users@xxxxxxxx
- Subject: Re: unignore and regular expression help needed
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 6 Nov 2008 16:35:56 -0600
- 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=Tj69X68uBQDbTjTE8ho91iZKMpA=; b=dHri t8maZdHLn2Y/7SMlYOWTvlh6gUQGbgpl7mhlbih+ESUacxR0+kUSuistvLkhXWk3 AsYYfD3KsFffC1hEVwFTHhcOX/Mg8KL6A23DRQDCNMBT9L+cSg2/bMqc80R2FOCv Q6CtahcM9Rn4rroJt+PbdIFgp2AKuk1/L4vIYfs=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=PiEatwimEMnPJkm/yImXQ1/TOO++X0s4TLB5zxFfyOk1FkDTI2n2VIYaQqpK6ErPbuy1pa83Ia53qqysXdPNZb4VothJp2lOCVGlnssqOStZk99ixN5U9/5Y5vd9/I1g9CNjQ6Cc7DPJAGXTOQXJSLsjNZkO6j4EjA3yQ+8jfsM=; 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: <20081106201449.GA19009@xxxxxxxxxxxxxxxxxxxxxxx>
- 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: <20081106201449.GA19009@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-10-30)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, November 6 at 08:14 PM, quoth Steve Searle:
> unignore X-Spam-Status:\ No,\ score=[23]
>What am I doing wrong?
You're assuming that it uses a full regexp, but it doesn't (check the
documentation).
You *could* just be very explicit:
unignore X-Spam-Status:\ No,\ score=1
unignore X-Spam-Status:\ No,\ score=2
unignore X-Spam-Status:\ No,\ score=3
unignore X-Spam-Status:\ No,\ score=4
unignore X-Spam-Status:\ No,\ score=5
unignore X-Spam-Status:\ No,\ score=6
unignore X-Spam-Status:\ No,\ score=7
unignore X-Spam-Status:\ No,\ score=8
unignore X-Spam-Status:\ No,\ score=9
Another way to do it would be to use a message-hook; that way you can
get full regex control. Try something like this:
message-hook . 'ignore * ; unignore Subject To From Date Cc'
message-hook '~h "X-Spam-Status: No, score=[^-]"' \
'unignore X-Spam-Status'
I think that gives you more power. :)
~Kyle
- --
The world is full of willing people, some willing to work, the rest
willing to let them.
-- Robert Frost
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkkTcUwACgkQBkIOoMqOI17GEgCfXLDhHamBMaHFhxaj8Qsl6Sxo
YjUAoOy4gmq6p2VRIOjqF841ZiHRsjJW
=sQHG
-----END PGP SIGNATURE-----