<<< Date Index >>>     <<< Thread Index >>>

Re: unignore and regular expression help needed



-----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-----