From: dman(_at_)nomotek(_dot_)com
Okay. :) Here's my "ATCOUNT" thingee:
:0 # count @'s in To:
* 1^1 TO ?? @
{ ATCOUNT = $= }
:0 # count @'s in Cc:
* $ $=^0
* 1^1 CC ?? @
{ ATCOUNT = $= }
:0 # add the subtotals, subtract 4 "gimmes"
* $ $=^0
* -4^0
{ TOO_MANY = $ATCOUNT }
In later recipes, I use either $ATCOUNT or $TOO_MANY, depending on
what I want to test. ($TOO_MANY will only be defined if
we exceeded my personal choice for "gimmes.")
I neglected to mention that I'd already saved the values
of To: and Cc: to the private variables seen above, TO and CC.
IOW, those are not procmail's variables, but ones I predefined.
Sorry for not being clear about that.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail