procmail
[Top] [All Lists]

Re: Auto-reply, then forward?

1997-03-20 08:59:15
On Thu, 20 Mar 1997 10:34:45 -0500,
"theSimpleman" <thesimpleman(_at_)atlantafest(_dot_)com> wrote:
for it to forward the original message to another account.  I tried 
to use the Carbon flag and then set up the forward on the next lines 
but couldn't get it to work.

What did you try? How did it fail?

:0 ic
* ^TOfeedback
*!^FROM_DAEMON
*!^X-Loop: feedback(_at_)atlantafest(_dot_)com
|(formail -r -A "Precedence: junk" \
-I"From: Atlanta Fest 97 <feedback(_at_)atlantafest(_dot_)com>" \
-I"Subject: Thanks for the Reverb!" \
-A "X-Loop: feedback(_at_)atlantafest(_dot_)com"; \
cat $FILEDIR/feedback.txt )|$SENDMAIL -t

Will this work? 

    :0i   # is this flag doing anything sensible here?
    * ^TOfeedback
    * ! ^FROM_DAEMON
    * ! ^X-Loop: feedback(_at_)atlantafest\(_dot_)com
    {
        :0c
        | ( formail -r -A "Precedence: junk" \
            -I "From: Atlanta Fest 97 <feedback(_at_)atlantafest(_dot_)com>" \
            -I "Subject: Thanks for the Reverb!" \
            -A "X-Loop: feedback(_at_)atlantafest(_dot_)com" ; \
            cat $FILEDIR/feedback.txt ) | $SENDMAIL -t

        :0
        save-here
    }


/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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