On 4/17/2012 8:03 AM, dhanushka ranasinghe wrote:
> Hi.. guys
>
> i have following rule in place in spamassassin,
>
> rawbody  BLOCK_RULE2 /(\W|^)Orange(\W|^)/i
> score BLOCK_RULE2 50
> describe BLOCK_RULE2 Bad Word
>
> but one of my mails got blocked even-though its doesn't have  word
> "Orange" , but when search via the mail spamassassin show mail has
> word Orange by displaying following.but that mail have words like
> "Orangicat"

Some good suggestions here already.  While your original regexp should
have worked in most cases, the optimal regexp for this situation is:

/\borange\b/i

(as has been noted previously)

If you are still having problems with false positives, please post the
exact rule you are using and put one or two samples of emails that
generate the false positive in pastebin so that we can see exactly what
is happening.  Since we are talking about a body rule here, it is ok to
munge the headers if you are worried about privacy.  If you make any
changes to the subject or body, please run it through SA afterwards to
make sure it still generates the false positive.

-- 
Bowie

Reply via email to