How can I send an automated reply to the sender and all recipients with Procmail?

Posted by jchong on Stack Overflow See other posts from Stack Overflow or by jchong
Published on 2009-08-25T19:46:52Z Indexed on 2010/06/06 0:02 UTC
Read the original article Hit count: 316

Filed under:

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

© Stack Overflow or respective owner

Related posts about procmail