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
Mandi! Vardhman Jain In chel dí si favelave...
VJ> Now when I send a message to myself with the subject as testing. I only VJ> get the autoreply answer and not the original mail.
Normal, you cat only the autoreply and not the message... ;)))
Try:
cat - $AUTOREPLY
or something like this.
smartlist@lists.rwth-aachen.de