procmail
[Top] [All Lists]

Re: Computed list of destinations?

2015-09-09 16:00:53
In article 
<20150907231724(_dot_)10961(_dot_)2A445A12(_at_)ahiker(_dot_)mooo(_dot_)com> 
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
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>