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
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. -- Mio figlio Christian diceva che la morte doveva essere qualcosa di bello, visto che nessuno ritornava. (Yolande Mukagasana)
participants (2)
-
Marco Gaiarin
-
Vardhman Jain