Brian Ipsen wrote: > Hi, > > I'm no expert in creating rules - so hopefully someone can help me with > this simple one: > > I want to assign a negative score for all mails, that has the text > > JGH Ref.: xxxxxxx >
body LOCAL_JGH /\bJGH Ref\.: xxxxxxx\b/ describe LOCAL_JGH Has special reference code score LOCAL_JGH -1.0 However, I assume you'll need something other than xxxxxxx in there.. Is it numbers? Alphanumeric? Is it always the same length? Here's a variant assuming it's always a 7-digit number: body LOCAL_JGH /\bJGH Ref\.: \d{7}\b/ Here's one assuming a 5-8 digit alphanumeric (underscores allowed too, but no other punctuation) body LOCAL_JGH /\bJGH Ref\.: \w{5,8}\b/