procmail
[Top] [All Lists]

Re: autorespond and save query?

1997-04-08 21:47:00
On Tue, 8 Apr 1997, Neil Sandow wrote:
I'm trying to use procmail to autorespond with a prepared text file
which is named info.txt in my $HOME/fileserver directory as described in
numerous FAQ's on the web.  The problem is that the original query message
is lost.  I'd like to save all messages sent to info(_at_)rxlist(_dot_)com in 
a mail
file called info.  I can do either but I can't seem to do both.  Can

This should do it. I have taken your recipe verbatum, added a "c" flag
to it, to cause a copy of the original to continue. Then below follows
a short recipe that uses the "A" flag, making it dependend on the
conditions of the recipe immediately prior. This last recipe should
cause the original to be saved in the folder "info" in the mail
directory.

David

        :0c
        * ^TOinfo
        *!^FROM_DAEMON
        *!^X-Loop: info(_at_)rxlist(_dot_)com
        |(formail -r -A "Precedence: junk"\
        -I"From: Auto Reply from rxlist " \
        -I"Subject: Information Request" \
        -A "X-Loop: info(_at_)rxlist(_dot_)com";\
        cat $FILEDIR/info.txt )|$SENDMAIL -t

        :0A:
        info

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