Re: [Exim] Spam Filter Efficiency - Regular Expressions

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Marc Perkel
CC: exim-users
Sujet: Re: [Exim] Spam Filter Efficiency - Regular Expressions
On Mon, 8 Oct 2001, Marc Perkel wrote:

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


There is no 1024 limit on regular expressions. Are you talking about the
limit on the length of a string in a filter?

> 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)"


This kind of thing is all very well, but regular expressions are not
cheap to run.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.