RE: how filter messages by subject

2007-01-04 Thread Bowie Bailey
Kelson wrote:
> Bowie Bailey wrote:
> > If you are going to try this, you will definately want to check
> > word boundaries like this: 
> > 
> > header BAD_WORDS Subject =~ /\bbadword\b/i
> > 
> > The "\b" on either side will ensure that you don't match the string
> > as part of another word.  (Anyone been to Essex? :)
> 
> Even that isn't foolproof.  Ever met someone who graduated college cum
> laude?

Right!

I wasn't intending to say that it is foolproof.  Just better than the
alternative.

-- 
Bowie


Re: how filter messages by subject

2007-01-03 Thread Kelson

Bowie Bailey wrote:

If you are going to try this, you will definately want to check word
boundaries like this:

header BAD_WORDS Subject =~ /\bbadword\b/i

The "\b" on either side will ensure that you don't match the string as part
of another word.  (Anyone been to Essex? :)


Even that isn't foolproof.  Ever met someone who graduated college cum
laude?

--
Kelson Vibber
SpeedGate Communications 


Re: how filter messages by subject

2007-01-03 Thread maillist

Kurt Buff wrote:

Missed the beginning of this conversation.

If it's about 'naughty' words, then I've got a word for you:

  Scunthorpe

It's a small town in the UK, and their local government had almost no
incoming mail when they implemented a naive naughty word filter, until they
figured it out.

Heh.


Kurt
  


But you can use:

body PROFANITY_RULE/\bcunt\b/i
score PROFANITY_RULE   15.0
describe PROFANITY_RULENaughty naughty word found in 
message


-=Aubrey=-


RE: how filter messages by subject

2007-01-03 Thread Evan Platt

At 11:03 AM 1/3/2007, you wrote:

These words do not actually appear much in spam.  You may be able to filter
out mail from obnoxious clients with this approach.  These types of words
are used more often in casual emails than in spam.  "Enhancement" spams may
have some of these words, but they tend to obfuscate them so that a simple
check like this doesn't work.

Give it a try, but score it low and watch it carefully at first.


Yeah my spam went from bad spellers ( Young Pzigtailed Tyanned Blond 
CUTEJGIRLS Plosing Nlude ) to stuttering (free gay por).


Lucky me. 



RE: how filter messages by subject

2007-01-03 Thread Bowie Bailey
Chris Santerre wrote:
> From: sergio [mailto:[EMAIL PROTECTED]
> > 
> > Hello spamassasin_list,
> > 
> >   I want filter messages with some bad words. How can configure yhe
> >   SA   to do that? Thanks.
> 
> Its not really meant to do it, but you can. You first right a rule to
> match bad words in the subject or body. But two ways to do things after
> that...  
> 
> header BAD_WORDS Subject =~ /bush/i
> description BAD_WORDS Oh...he is bad!
> score BAD_WORDS 100.00

If you are going to try this, you will definately want to check word
boundaries like this:

header BAD_WORDS Subject =~ /\bbadword\b/i

The "\b" on either side will ensure that you don't match the string as part
of another word.  (Anyone been to Essex? :)

> scoring it high will have it marked as spam, and treated however you treat
> spam. But if you wanted to to put ones that hit this rule somewhere else,
> then you could score it low and use procmail to look for the "BAD_WORDS"
> in the report header, and forward the email to another folder or account. 
>
> All this said I do NOT recommend doing any of this. Its sure to FP on
> emails.

These words do not actually appear much in spam.  You may be able to filter
out mail from obnoxious clients with this approach.  These types of words
are used more often in casual emails than in spam.  "Enhancement" spams may
have some of these words, but they tend to obfuscate them so that a simple
check like this doesn't work.

Give it a try, but score it low and watch it carefully at first.

-- 
Bowie


RE: how filter messages by subject

2007-01-03 Thread Chris Santerre


> -Original Message-
> From: sergio [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 03, 2007 9:13 AM
> To: spamassasin_list
> Subject: how filter messages by subject
> 
> 
> Hello spamassasin_list,
> 
>   I want filter messages with some bad words. How can configure yhe SA
>   to do that?
>   Thanks.

Its not really meant to do it, but you can. You first right a rule to match
bad words in the subject or body. But two ways to do things after that...

header BAD_WORDS Subject =~ /bush/i
description BAD_WORDS Oh...he is bad!
score BAD_WORDS 100.00

scoring it high will have it marked as spam, and treated however you treat
spam. But if you wanted to to put ones that hit this rule somewhere else,
then you could score it low and use procmail to look for the "BAD_WORDS" in
the report header, and forward the email to another folder or account. 

All this said I do NOT recommend doing any of this. Its sure to FP on
emails. 

Thanks,

Chris Santerre
SysAdmin and Spamfighter
www.rulesemporium.com
www.uribl.com