Re: Computed list of destinations?

"John Levine" <[email protected]> 9 Sep 2015 21:00:17 -0000
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
In article <[email protected]> you write:
>Is there any way for procmail to deliver to a computed or dynamically
>determined list of mailboxes or addresses?

You can use shell variables, e.g.

RECIPS=`some shell command that works on the input message`

:0
| sendmail $RECIPS

You can do this to compute the name of an individual mailbox but you'd
need some hackery to do multiple mailboxes, basically put each mailbox
in a separate variable and a conditional stanza for each variable that
delivers the mail if the variable isn't empty.

There's some variable mailbox examples in procmailex.


R's,
John