On Thursday 20 October 2005 08:39 am, Jean-Paul Natola wrote:
> I've been getting quite a few messages sneaking in related to stocks,
> What I have noticed is that they ALL contain the following;
>
> Company:
> Symbol:
> Price:
> How would I go about a creating a rule/filter that would score any message
> that contains those three words followed by the colon to score 3 points?

Watch the wrapping, but here's what I'm using with good success:

body SENET_STOCK_SPAM_01        /SYMBOL:.{1,10}CURRENT PRICE:.{1,10}[0-9] Day 
Target:\s+\$/
describe SENET_STOCK_SPAM_01    Stocks spam
score SENET_STOCK_SPAM_01       3.85

body SENET_STOCK_SPAM_02        /(Ticker:_.{1,15}Last_Trade:_.
{1,15}Projected_Price:_.{1,15}Return_Level:_)|(Trade Date:.{1,15}Company:.
{1,50}Stock:.{1,15}Current Price:\s+\$[0-9\.]+.{1,10}Expected Target:)/
describe SENET_STOCK_SPAM_02    Stocks spam
score SENET_STOCK_SPAM_02       5.0

body SENET_STOCK_SPAM_03        /SYMBOL.{5,25}Current Price.{5,25}jected Short 
Term Growth.{5,25}Rating.{2,5}[0-9]+\sout\sof\s[0-9]+/
describe SENET_STOCK_SPAM_03    Stocks spam
score SENET_STOCK_SPAM_03       5.0

Reply via email to