Toen wij LuKreme kietelden, kwam er dit uit:
I want ALL of ^TO_ not To: or Cc: but all the emails in the ^TO_ match
S1: You need to dissect the ^TO macro:
(^((Original-)?(Resent-)?(To|Cc|Bcc)|
(X-Envelope|Apparently(-Resent)?)-To):
(.*[^-a-zA-Z0-9_.])?)
and collect the addresses from all the included headers
(see http://www.xs4all.nl/~rvtol/procmail/basic/pm/H_vars.inc)
s = " " # space + tab
S = "[^$s]" # set of non-whitespace
H_TO # unset
:0
*$ ^To:.*\/$S.*
{ H_TO = $MATCH }
:0
*$ ^Cc:.*\/$S.*
{ H_TO = "$H_TO $MATCH" }
etc.
S2: There is a much nicer solution with scoring and a recursive INCLUDERC.
(1) counter = 1
(2) collect the addresses from the counter-th ^TO_-header
(3) if no more match: break
(4) increase counter and back to (2)
--
Grtz, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail