On Tue, 5 Aug 1997 07:07:20 -0700 (MST), Wotan <wotan(_at_)netcom(_dot_)com>
wrote:
> How about something like this:
>
> :0
> * ^To: \/.*
> {COMMA=`echo $MATCH| grep -c ,`}
>
> :0
> * ? test $COMMA -gt 5
> {whatever action you want}
Someone posted this gem to the list some time ago for counting and
limiting the number of people in a CC.
With a bit of editing, you should be able to combine my previous posting
to get a better result. If yo don't mind missing multiple To: lines. :)
# Actually lets you accept cc's of a certian size.
:0
*^Cc:\/.*
{
PERM_COUNT=9
:0
* 1^1 MATCH ??,
* $ -$PERM_COUNT^0
/dev/null
}
--
Greener's Law:
Never argue with a man who buys ink by the barrel.