Toen ik Robert Krueger kietelde, kwam er dit uit:
all my mail
started going to "blue-spam", good mail and bad.
[...]
TooMuch = 3 # set your own number
:0:
*$ -$TooMuch^0
*$ $SCMAX^0
* 1^1 H_To ?? @
* 1^1 H_Cc ?? @
blue-spam
Change the SCMAX-line from the last recipe:
:0:
*$ -$TooMuch^0
* 1^0
* 1^1 H_To ?? @
* 1^1 H_Cc ?? @
blue-spam
I don't know why the SCMAX was there. I think I was trying to
cut a corner but flew out instead.
Simpler:
MaxATs = 2 # of acceptable ATs
ATs
:0 # collect all To/Cc-(_at_)s in ATs
* ^To:\/.*@
{ ATs = $MATCH }
:0
* ^Cc:\/.*@
{ ATs = "$ATs$MATCH" }
:0:
*$ -$MaxATs^0
* 1^1 ATs ?? @
blue-spam
--
Affijn, Ruud
P.S. Maybe I was reaching for this:
SCMAX = 2147483647
MaxATs = 2 # of acceptable ATs
ATs
:0 # collect all To/Cc-(_at_)s in ATs
* ^To:\/.*@
{ ATs = $MATCH }
:0
* ^Cc:\/.*@
{ ATs = "$ATs$MATCH" }
dot = "."
:0 # tmp = (SCMAX DIV MaxATs) -1
*$ dot ?? $SCMAX ^ 1 > $MaxATs
* -1 ^ 0
{ } tmp = $=
:0: # score = -SCMAX +1 + tmp * (# of @s)
*$ 1 ^ 0
*$ -$SCMAX ^ 0
*$ $tmp ^ 1 ATs ?? @
blue-spam
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail