procmail
[Top] [All Lists]

Auto reply recipe refine

1999-09-07 23:26:55
How to forward a copy to an e-mail after sending the auto reply?

I tried to add a 'c' to this first line, but instead of sending a copy to local mailbox, the recipe replied twice to sender.

What I need is: after auto-replying, send a copy and end .procmailrc processing.

TIA

:0
* ^TOwebspam
{
:0 Whc: vacation.lock
* !^FROM_DAEMON
* !^X-Loop: nobody(_at_)antispam(_dot_)org(_dot_)br
| formail -rD 8192 $HOME/temp/webspam.cache.`date +%Y%m%d`.txt

:0 ehc  # if the name was not in the cache
| (formail -rtkb -I"From: WEBMASTER <nobody(_at_)domain>" -I"Reply-To: nobody(_at_)domain" -I"Precedence: junk" \
   -A"X-Loop: nobody(_at_)domain" ; \
   echo "--++ "; cat $HOME/textos/webspam.txt \
   ) | $SENDMAIL -oi -t
}

<Prev in Thread] Current Thread [Next in Thread>