Quoting "Bowie Bailey" <bowie_bai...@buc.com>:
David Michaels wrote:
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
A couple of things.
The "To" match should look like this:
header __GK__PHARMS_01 To =~ /michae...@ucrwcu\.rwc\.uc\.edu/
You need the / delimiters around the regex and then you need to escape
special characters like period and @.
Also, the pharmacy match is redundant as John already pointed out:
header __GK__PHARMS_02 Subject =~ /\bPHARMA(?:CY)?\b/
The \b matches a word boundary and ensures that you are only matching on
full words. If you don't care about partial matches, you can do a
simpler match:
header __GK__PHARMS_02 Subject =~ /PHARMA/
--
Bowie
Thanks for re writing the subject for me.. I like the more
sophisticated match.. I will try again...