procmail
[Top] [All Lists]

Re: Detecting multiple To: headers?

1999-06-03 19:56:00
Tony Lam <Tony(_dot_)Lam+procmail(_at_)eng(_dot_)sun(_dot_)com> writes:
...
A little more accurate way is to use either your recipe or
Philip/David's recipe to count comma separated items in "To", "Cc",
"Resent-To" separately and sum them up as total number of
recipients. Still it doesn't handle well messages with multiple "To"
or "Cc" lines.

David and my method of the recursive INCLUDERC does handle multiple
To:  and/or Cc: header.  Each occurance of a header that matches the
header selection regexp that's passed to the INCLUDERC results in
another invocation of the INCLUDERC.  The embedded comma problem is
it's only major failing.


Philip Guenther