procmail
[Top] [All Lists]

Re: Checking for Non dictionary words

2003-11-22 08:18:53
Hi,

not tested, but you may want to try something like this:

C = "[]['/@&%#_!=,;:.*+?^() \\\"\`\$-]"
O = "[o0]"

MONEY = "m$C?$O?$C?n$C?e$C?y"

BADMONEY
:0
* $ ^Subject:.*\/$MONEY
{ BADMONEY = $MATCH }

# to be continued:
# if $BADMONEY contains $C+ apply the spam rule

Who continues that?

best,

--rob

On Sat, 22 Nov 2003, 06:19 GMT-08 (15:19 local time) 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

I have writen the below recipe but it seems awfully 
cumbersome. Is there an easier way of doing this.
#-------------------------
CH = '  \.\!\*\~\:\-\@'

# I have put it on separate line to make it a little 
# more readable
:0:
* $ ^SUBJECT:.*M[$CH]O[$CH]?N[$CH]?E[$CH]?Y|\
M[$CH]?O[$CH]N[$CH]?E[$CH]?Y|\
M[$CH]?O[$CH]?N[$CH]E[$CH]?Y|\
M[$CH]?O[$CH]?N[$CH]?E[$CH]Y

#-----------------------------

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 .
This method isnt too cumbersome with a word like money 
but when you start doing this on University Degree's 
it gets real big.

Anyone have a simpler solution, short of creating a 
file with a list of words in it.


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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


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