procmail
[Top] [All Lists]

Re: Multiple recipients

2004-03-09 18:22:29
On Mon, 2004-03-08 at 20:06, Ruud H.G. van Tol wrote:
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

Thank you, Rudd.
Robert

_______________________________________________
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>