procmail
[Top] [All Lists]

Re: How can I filter out <!-- spam?

2003-06-29 10:06:45
On Sun, 29 Jun 2003, Linux wrote:

L> Hello all!
L>
L> I have noticed a substancial increase in spam lately.

L> How would I add a filter that would count all the instances of "<!--"
L> and if there are 5 or more, dump it to my spam directory?
L>


As I am sitting at my pc, I noticed in the log windo that your email was
plonked in my spam box.  We had a discussion here about this subject not
long ago so you might have a look in the archives.

Both of the recipes I'm using caught your mail so perhaps I am being a bit
too strict.  It is difficult to use spam recipes that don't trap emails
discussing spam recipes.  This email has four start of comment sequences
so I am going to need it to be at least 560 characters long and 80 words
long to get through my own defenses ....

Maybe the "5 or more" is a better approach but if I had chosen "4 or more"
I would have still caught your email.  10 or more would be more
reasonable?  Or maybe 1 or more?  I've tried to scale my trap to the size
of the message.


# html comments
# 5% of chars are html comment delimiters
# 7 chars in delimiter <!--xx yyy -->
:0 B
* -1^1   .
*  140^1 ()<!--
{
 # action stuff here


and


# html comments
# Less than 20 words for each comment
:0 B
* -1^1  ([      ]|$)[^  ]
*  20^1 ()<!--
{
 # action stuff here



Alan


( Please do not email me AS WELL as replying to the list.  Please
  address personal email to alan+1@ as lists@ is not read. A
  password autoresponder may be invoked if this email is very old. )


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>