Regarding problem in Autoreply

Vardhman Jain <[email protected]> Sun, 14 Mar 2004 15:12:38 +0530 (IST)
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
Hi,
	I have joined this group just now, because I was not able to solve 
one simple autoreply problem. I have to generate autoreplies from my login 
using procmail. I tried the following piece of code available on the net.

[rc.testing]

FORMAIL=/usr/bin/formail
AUTOREPLY=/ug/ug2k1/vardhman/autoreply/autoreply.txt
USER=PGAdmissions2004
HOST=students.iiit.net
MYXLOOP = "X-Loop: $USER\@$HOST"
SENDMAIL=/usr/sbin/sendmail

:0 BH
* ^Subject:.*testing
*  ! ^FROM_DAEMON
* $ ! ^$MYXLOOP
{
        :0
        | ( $FORMAIL -rtk                                              \
         -A "X-Mailer: PGAdmissions2004 Autoreply"                 \
         -A "$MYXLOOP" ;                                     \
         cat $AUTOREPLY ) | $SENDMAIL  -oi -t

}

[rc.testing]

Now when I send a message to myself with the subject as testing. I only 
get the autoreply answer and not the original mail. I want to implement 
it such the mail that comes from someone shouldn't be lost, I.e to append 
that mail to my mailbox too. How do i go about doing it.

Vardhman


-- 
Vardhman Jain
III Year B.Tech. CSE
IIIT-Hyderabad
Address:
Room No 27, NBH, IIIT-Hyderabad,Hyderabad 500019

presence on net:
    http://students.iiit.net/~vardhman