Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

procmail autoreply problem



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org