Luis Daniel Lucio Quiroz wrote:
<> :0HB
<> * -1000^0
<> * 400^0 ^Subject[ ]*:.*(\<porn\>|\<cum\>|penis|viagra|free(
<> )*sex|enlargement( )*pill)
<> * 900^1 penis( )*$?^?enlargement
<> * 900^1 enlargement( )*$?^?pill
<> * 900^1 MILF( )*$?^?Rider
<> * 900^1 paris( )*$?^?hilton( )*$?^?video
<> * 900^1 Porn( )*$?^?(Sharing)?( )*$?^?Software
<> * 900^1 (fuck|rape)( )*$?^?(this|that)( )*$?^?(pretty|little)?( )*$?^?slut
<> * 300^1
<>
(\<porn\>|\<cum\>|penis|viagra|schoolgirl(s)?|fuck|cock|orgy|incest|rape|anal|asian(
<> )*$?^?(babe|girl)|\
<> bestiality|gangbang|blowjob|puss(y|ie)|(Best|multiple)(
<> )*$?^?Orgasm|e-r-e-c-t-i-o-n)
<> {
<> NKPRNS=$=
<> LOG="---=== PORN SCORE:$NKPRNS $DATE ===---${NL}"
<>
<> :0fhw
<> | formail -i "Subject: WARNING-PORN-SCORE:$NKPRNS-$SUB"
<>
<> :0:
<> $PORNDIR
<> }
<> }
<> }
<>
<>
<> What changes should I do, to do the next:
<> if score is under 300 let it go normaly
<> admin must recibed a copy and normal user too
:0HB
* -300^0
* 400^0 <all of your original scoring conditions>
{
FOO="$="
:0 # -300 + -700 == -1000
* -700^0
* $ ${FOO}^0
{
# Stuff you had in the original action clause
}
FOO
:0 c
! postmaster@<localdomain>
}
I might use "301" for the value of the final scoring condition, so
that it falls into the action clause as well.
Reto
--
R A Lichtensteiger rali(_at_)tifosi(_dot_)com
The only thing standing between a three week old yoghurt and a tech
support job is the lack of a social security number -- me
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail