procmail
[Top] [All Lists]

Re: Checking for Non dictionary words

2003-11-24 08:53:10
On Sun, 23 Nov 2003, Udi Mottelo wrote:

On Sat, 22 Nov 2003, S Semple wrote:

I suppose due to the increase in spam filtering
spammers have moved to hiding their words eg.
m.oney or p(_at_)armacy
[...]
What I am trying to do in this recipe is prevent
the false positive of simply MONEY which is a
common enough word but flag anything else. eg mon.ey
or mo:ney or even m.o.n.e.y .

      Try this example:

PU="[^a-z]?"

:0 HB
*$ ()\/m($PU)(O|0|())($PU)n($PU)e($PU)y
* 1^0 MATCH ?? [^a-z]
{ SAPM=yes }


        BTW.  The score doesn't must.  But, the original idea was
        to MATCH the whole Subject line and then to count the nuber
        of the not alpha,num and space chars.

        Assumption that your users are not comics-friks you can guess
        that you got a spam if the score is too big;  ( $= > 5  in
        following example).

:0
* Subject: ()\/.+
* 1^1 MATCH ?? [^a-z0-9 ]
{ SC="$=" }

:0
* SC ?? ^^[^1-5]^^
{ SPAM=yes }


Bye,
  Udi


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail