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 think I tried it first with the // and also escaping the dot's and @.. Thats hilarious I didn't see the double match.. thanks :)

Reply via email to