On 12/5/2013 5:09 PM, Marcio Humpris wrote:
correction...

Thanks everyone that helped. I wanted the regex to actually catch ONLY if there are up to 2 words. so catch 1 word or 2 words in BODY.

rawbody __RB_GT_40  /^.{41}/s
meta    __RB_LE_40  !__RB_GT_40

meta  LOCAL_RB_LE_40  __RB_LE_40
describe RB_LE_40 Meta: less then 200 chars in rawboby
score LOCAL_RB_LE_40 0.1

That catches emails with empty body, with less then 200 chars... I want to catch only up to 2 distinct words.

how can I adjust it?

First thought would be:

rawbody __RB_2_WDS /^(?:\s*\S+){0,2}\s*$/

Untested... Should match empty message, message with only whitespace, or message with one or two words.

--
Bowie

Reply via email to