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:
bob@example.com writes an email to john@example.com and paul@example.com (in the To: field). Copies are sent via cc: to rob@example.com and alice@example.com.
I'd like the script to send an auto response to the original sender (bob@example.com) and everybody else that was sent a copy of the email (john@example.com, paul@example.com, rob@example.com and alice@example.com).
Thanks