procmail
[Top] [All Lists]

Re: Auto reply recipe refine

1999-09-09 21:24:14
Hermann Wecke <hermann(_at_)rodeios(_dot_)com> writes:
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.

: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
}

Actually, it should work the way you want it *just* like that.  I say so
with some confidence as that's almost exactly what I use as my vacation
recipe.  I would suggest making the X-Loop: headers match so that you
test for what you add.  Hmm, what get's logged if you put VERBOSE=on
above all of that?  Also, what version of procmail are you using?


Philip Guenther

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