procmail
[Top] [All Lists]

Re: One-Word-Spam on nearly all Mailinglists

2007-04-29 10:17:18

On Sun, 29 Apr 2007, Udi Mottelo wrote:

On Sun, 29 Apr 2007, Michelle Konzack wrote:

Hello *,

since some days I am hit by nearly 17.000 One-Word-Spams per day over
the Debian BTS and Other Mailinglists.

Now I have following Recipe which catch this shit:

----[ '/home/michelle.konzack/.procmail/FLT_oneword' ]-------------------
####################################################################
# FLT_oneword
####################################################################

WORDS=`formail -I "" |sed '/^-- /,$d' |wc --words`

      Or save one command:

WORDS=`sed -n '1,/^-- /p' |wc --words`



:0
* 2^0
* $ -${WORDS}^0 > 1
.ATTENTION.FLT_oneword/
------------------------------------------------------------------------


      Thanks Michelle, I didn't check the following but I think that
      you can count the words inside the procmail:

:0 b
* -2^0
* 1^1 ()\>+
.ATTENTION.FLT_oneword/


        Sory, it's up-side-down
:0 b
* -2^0
* 1^1 ()\>+
{
CW=$=
     :0
     * CW ?? ^^[1]^^
     .ATTENTION.FLT_oneword/
}

B,
  Udi


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail