procmail
[Top] [All Lists]

Re: Autoreply to several addresses

1996-02-25 11:34:44
On Sun, 25 Feb 1996, Dan Nielsen wrote:

I just joined the procmail list and have a limited knowledge of 
procmail.  I'm trying to set up procmail to handle the following auto 
reply situation:

   I will be receiving messages with the body containing email addresses 
(one per line).  I want to use procmail to send out a text file email 
message (like "$HOME/example.txt" for example) to each of the email 
addresses in the body of the recieved message.  Any suggestions?

Have procmail feed the body of the message to a perl script that will 
mail each individual.

:0 b
*^(your criteria)
|perl Script

And the perl script look something like this:

while ($victim=<STDIN>) {
        `elm -s 'some subject' <the.file $victim`;
}

--
Automobile, n.:
        A four-wheeled vehicle that runs up hills and down
        pedestrians.

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