tags:

views:

62

answers:

1

I'd like to create a procmail recipe or Perl or shell script that will send an auto response to the original sender as well as anybody that was copied (either To: or cc:) on the original email.

Example:

[email protected] writes an email to [email protected] and [email protected] (in the To: field). Copies are sent via cc: to [email protected] and [email protected].

I'd like the script to send an auto response to the original sender ([email protected]) and everybody else that was sent a copy of the email ([email protected], [email protected], [email protected] and [email protected]).

Thanks

A: 

You should be able to accomplish this using the this procmail module for Perl 5. You could also just use the procmail configuration files to do this as well.

Here's an example of our procmail configuration sending e-mails "through" a perl script.

:0fw
* < 500000
| /etc/smrsh/decode_subject.pl

I hope that helps get ya started.

J.J.