> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2003 3:21 PM
> To: Christopher Eykamp
> Cc: Chris Santerre; Spamassassin-Talk (E-mail); [EMAIL PROTECTED]
> Subject: Re: [SAtalk] New type of generic rule. 
> 
> 
> 
> Christopher Eykamp said:
> 
> > At 09:58 AM 6/16/2003 -0400, Chris Santerre wrote:
> > >This isn't a request, more an open discussion.
> > >
> > >Would it be good to program a default counter function in 
> SA so that users 
> > >may custom write rules using it. IE a simple function call 
> in SA called 
> > >'counter' instead of header. Then you simply feed it a 
> regex and give it a 
> > >minimum.
> > >
> > >counter MY_TEST <br> ,5
> > >
> > >this would mean if the term <br> is found in the rawbody 
> at least 5 times, 
> > >then it is a hit.
> > >(OH, and I have no clue how to program this!)
> > >
> > >Thoughts?
> > 
> > 
> > 
> > 
> > You could write a similar rule like this:
> > 
> > 
> > rawbody MY_TEST /<br>.*<br>.*<br>.*<br>.*<br>/is
> 
> this is somethign to watch out for -- .* will cause massive slowdowns
> on large messages.  Better to do
> 
>   rawbody MY_TEST /<br>.{0,40}<br>.{0,40}<br>.{0,40}<br>.{0,40}<br>/is
> 
> it'd still be slow though ;)

Ahhhh I see! This must be why it hasn't been done before! What would you
consider a large messege? Only thing getting thru now are these spams
created with images. So they are all kind of small. 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to