Re: Rule to select sender starting with string

2006-04-27 Thread Andrew

Matt Kettler wrote:

Al Danks wrote:


Matt Kettler mkettler at evi-inc.com writes:


 


Try a rule something like this:

L_FROM_STRING header From =~ /$string/


   


It appears that the rule is also hitting senders with the string following a .

I.e. From =~ /$com/ hits 


comalksdfl.net

aksafjdla.com
 



Interesting.. that shouldn't happen with the $ there.. I'll have to test
that, unless Theo or one of the other devs can offer an explanation as
to why..




Are SA regexes different from other regexes? If not, use '^' to specify 
the beginning of a string and '$' its end. Try this pattern:

/^com/

Andrew



Re: Rule to select sender starting with string

2006-04-27 Thread Matt Kettler
Andrew wrote:
 Matt Kettler wrote:
 Al Danks wrote:

 Matt Kettler mkettler at evi-inc.com writes:


  

 Try a rule something like this:

 L_FROM_STRING header From =~ /$string/




 It appears that the rule is also hitting senders with the string
 following a .

 I.e. From =~ /$com/ hits
 comalksdfl.net

 aksafjdla.com
  


 Interesting.. that shouldn't happen with the $ there.. I'll have to test
 that, unless Theo or one of the other devs can offer an explanation as
 to why..



 Are SA regexes different from other regexes? If not, use '^' to
 specify the beginning of a string and '$' its end. Try this pattern:
 /^com/

You're right Andrew.  I had a brain-cylinder misfire there..

Sorry Al, try it with ^ instead of $



Rule to select sender starting with string

2006-04-26 Thread Al Danks
We are getting a lot of spam where the sender domain name changes, but the
sender always starts with a specific string.

We've only done a little bit of custom rule writing. How do we do a rule to get
the sender starting with a specific string?

Thanks, Al



Re: Rule to select sender starting with string

2006-04-26 Thread Mike Jackson

We are getting a lot of spam where the sender domain name changes, but the
sender always starts with a specific string.

We've only done a little bit of custom rule writing. How do we do a rule 
to get

the sender starting with a specific string?


You could probably just do something like this:

blacklist_from [EMAIL PROTECTED] 



Re: Rule to select sender starting with string

2006-04-26 Thread Matt Kettler
Al Danks wrote:
 We are getting a lot of spam where the sender domain name changes, but the
 sender always starts with a specific string.
 
 We've only done a little bit of custom rule writing. How do we do a rule to 
 get
 the sender starting with a specific string?

Try a rule something like this:

L_FROM_STRING header From =~ /$string/





Re: Rule to select sender starting with string

2006-04-26 Thread Matt Kettler
Al Danks wrote:
 Matt Kettler mkettler at evi-inc.com writes:

  
   
 Try a rule something like this:

 L_FROM_STRING header From =~ /$string/


 

 It appears that the rule is also hitting senders with the string following a .

 I.e. From =~ /$com/ hits 

 comalksdfl.net

 aksafjdla.com
   

Interesting.. that shouldn't happen with the $ there.. I'll have to test
that, unless Theo or one of the other devs can offer an explanation as
to why..