procmail autoreply problem
Matthew Gillen
me at mattgillen.net
Thu Aug 25 12:59:38 EDT 2005
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
More information about the Discuss
mailing list