procmail autoreply problem

Paul Norton paul.norton at gmail.com
Thu Aug 25 12:50:19 EDT 2005


A user is on vacation this week, so I have set up an autoreply for him
with procmail.

I have set up a .procmailrc file in a user's home directory.

The problem is, the autoreply's are sent to email lists he is on too.

How do I have auto reply's sent to only emails that are sent directly
to or cc'ed to him?

Here is the .procmailrc :

SHELL=/bin/sh
PATH=/usr/bin
:0 c
* !^X-Loop: person at company.com
  | (formail -r -i "Subject: Out of office until Friday, July 29, 2005" \
         -A"X-Loop: person at company.com" ; \
         echo "Thank you for your message." ; \
         echo " " ; \
         echo "I am currently out of the office until July 29'th. If
you need immediate assistance, please contact name , or call us at
000-000-0000" ; \
         echo " " ; \
         echo "Best Regards, " ; \
         echo "Name" ; \
         echo "Position" ; \
         echo "Company." ) | /usr/sbin/sendmail -oi -t -f person at company.com


Thanks!
- Paul



More information about the Discuss mailing list