Hi *,
How can I bounce a mail to multiple recipients (addresses are stored
in a file) based on the contents of a header? in this case the header
would have something like airheads-l to indicate the rule that the
list of recipients is in the airheads.list file. I have tried many
things including the sour recipe below but nothing works.
:0
* ^X-To: \/[-a-z]*-l
* ^X-Loop: project_acct(_at_)my(_dot_)domain(_dot_)nl
* ^FROM_DAEMON
{
:0 fhw
* ^X-To: \/[-a-z]*-l
| formail -A "X-MailList: $MATCH"
LISTNAME="$MATCH"
:0 ah
! `cat /user/project_acct/.procmail/lists/$LISTNAME.list`
}
--
NAME: D. Emilio Grimaldo T. | Communication Multimedia | _/_/_/_/
EMAIL: grimaldo(_at_)sce(_dot_)philips(_dot_)nl | Senior Software Engineer
| _/_/
ADDRESS: Eindhoven,The Netherlands | ph. +31 40 2722099 | _/_/_/_/
-----------------------------------+--------------------------| _/_/
* * http://www.iaehv.nl/users/grimaldo/index.html :) * * | _/_/_/_/
---------------------------------------------------------- \\v// -------
Limited choice & Monopoly foster mediocrity & incompetence (o o)
-------------------------------------------------------ooO-(_)-Ooo----