Philip Guenther suggested for Ken Marsh [comments deleted; see Philip's
original post if you want to reread them],
| :0
| * ^Resent-(From|Date|To|Cc|Message-Id):
| { R="Resent-" }
| :0E
| { R= }
|
| :0
| * -19^0
| * ^^\/
| * 1^0 $ ^${R}To:\/.*
| * 1^1 MATCH ?? ,
| * ^^\/
| * 1^0 $ ^${R}Cc:\/.*
| * 1^1 MATCH ?? ,
| { EXITCODE=77 HOST }
The problem here is that if there are more than one ${R}To: header or
more than one ${R}Cc: header, only recipients in the first of each will
be counted. It can be slightly improved:
* ^^\/
* 1^1 $ ^${R}To:\/.*
* 1^1 MATCH ?? ,
* ^^\/
* 1^1 $ ^${R}Cc:\/.*
* 1^1 MATCH ?? ,
That will count one address for every ${R}To: header except the last
and all the addresses in the last one, and likewise for the ${R}Cc:
headers.
So far the only way I see to do this without an external program is a
recursive INCLUDERC, and those things can be vicious.