[Exim] Spam Filter Efficiency - Regular Expressions

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Perkel
Dátum:  
Címzett: exim-users
Tárgy: [Exim] Spam Filter Efficiency - Regular Expressions
OK - is there any reason who this should work? I'm still very new to
regular expressions. I don't understan the concept of "consuming" text
or if these "or" conditions interact with eash other in any way.

Also -- to Philip Hazel -- you might want to increase the 1024 character
limit on regular expressions.

if "$h_subject: $message_body:" matches "(dear friends?,|\
LIVE ?SHOWS|\
dish (network|offer)|\
(vacation|weight loss|limited time) .*offer|\
(order|perscription) .*medications .*online|\
Saving.* Life Insurance|\
(Unlimited|per minute) .*Long Distance|\
money .*guaranteed!|\
seen.* national tv|\
stock .*strong buy|\
work from home .*(money|income)|\
unlimited .*long distance)"


then
# save /var/mail/spam
headers add "x-spam: [SPAM] Body 3"
headers add "x-spamstring: $1 - $2 - $3"
finish
endif


Isn't this shorter - faster - cleaner than this model?

or "$h_subject: $message_body:" matches "(accept.*credit cards|unsecured
.*(master card|visa|credit))"
or "$h_subject: $message_body:" matches "bulk .*hosting"
or "$h_subject: $message_body:" matches "herbal .*viagra"
or "$h_subject: $message_body:" matches "attract.*opposite sex"
or "$h_subject: $message_body:" matches "celebrity .*(sex|videos?)"
or "$h_subject: $message_body:" matches "submit .*search engines"
or "$h_subject: $message_body:" matches "free
(cellphone|preview|vacation|debt|bargains?|website)"
or "$h_subject: $message_body:" matches "credit card .*(offer|debt)"
or "$h_subject: $message_body:" matches "earn .*(offshore|debt)"

Comments?