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 | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

procmail autoreply problem



Paul Norton wrote:
> 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
Perhaps replace that line with:
* ^TOperson at company.com

>   | (formail -r -i "Subject: Out of office until Friday, July 29, 2005" \
> ...

I think the "^TO" covers "to" and "cc". You might also want these lines
at the top:
PRDIR=$HOME/.procmail  # make sure this exists
LOGFILE=$PRDIR/log   #recommended

--Matt




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