Auto-reply

Jerry Sloan <[email protected]> Fri, 23 Jul 2004 00:29:23 -0500
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
Hello,

I have been using the following recipe to generate an auto-reply message
to customers who send e-mail to our support department. Well it just
stopped working. Nothing has been changed. Any ideas why it would just
stop working.

Thanks

Jerry Sloan

REPLY_TEMP=/home/smart/fpsupport/autoreply.tpl
REPLY_TEXT=/home/smart/fpsupport/autoreply.txt
REPLY_SUBJECT="Your message has been received DO NOT REPLY to this
e-mail"
ORIG_SUB=`formail -zx Subject:`
                                                                                
:0 whc
| formail -rtzc -xTo: >tmp.from ; \
sed 's/\$SUBJECT/'"$ORIG_SUB"/g $REPLY_TEMP > $REPLY_TEXT
                                                                                
:0 ch :autoreply.lock
| (formail -rtzc -I "Subject: $REPLY_SUBJECT" \
-A"Precedence: reply" ; cat $REPLY_TEXT) | \
$SENDMAIL -t -f [email protected] `cat tmp.from`