Quoting "John Wilcock" <j...@tradoc.fr>:
Le 22/06/2010 17:09, David Michaels a écrit :
I don't mean to be stupid.. and I know that this should be done with
sieve but..
Is there a obvious reason this doesn't work?
I think it's the "To" thats messing up..
header __GK__PHARMS_01 To =~ micha...@ucrwcu.rwc.uc.edu
header __GK__PHARMS_02 Subject =~ /PHARMA|PHARMACY/
meta TR_GK__PHARMS (__GK_PHARMS_01 && __GK_PHARMS_02)
score TR_GK__PHARMS 6.0
First and foremost, you're missing the // on either side of the To regex.
As an aside, PHARMA will always match PHARMACY! Depending on exectly
what you're trying to achieve, you can either simplify your regex to
just /PHARMA/ or bound it with word separators /\bPHARMA(CY)?\b/
John.
--
-- Over 4000 webcams from ski resorts around the world - www.snoweye.com
-- Translate your technical documents and web pages - www.tradoc.fr
I'm still not matching it the rule is a derivative of this other that
does work for me..
header __GK_CANA_PHARMS_01 Subject =~
/DISCOUNT|GOOD|CANADA|FREE|ONLINE|SALE|STORE|BEST|USA|Product|BUY/i
header __GK_CANA_PHARMS_02 Subject =~ /PHARMA|cialis|MEDICAL/i
meta TR_GK_CANA_PHARMS (__GK_CANA_PHARMS_01 && __GK_CANA_PHARMS_02)
score TR_GK_CANA_PHARMS 6.0
This one both matches are based on the Subject.. and it works well..
thanks
dm