Author: George Vieira
<tremors(_at_)newjackswing(_dot_)dyn(_dot_)ml(_dot_)org>
Original-Date: Tue, 31 Mar 1998 01:01:06 +1000
Message-ID:
<01BD5C40(_dot_)7CE3AD00(_dot_)tremors(_at_)newjackswing(_dot_)dyn(_dot_)ml(_dot_)org>
FROM=`formail -xFrom: `
:0:
* ^Subject:.*test
| mail -s "NCI test ok" -c $FROM << $FROM
Try this instead:
REPLYTO=`formail -rtzxTo:`
:0
* ^Subject:.*test
| (echo 'OK' | Mail -s "NCI t_e_s_t OK" $REPLYTO)
Note that 'Mail' is different than 'mail' in many cases but should work here
Of course there's an opportunity for an incredibly nasty mail loop here if
someone should forge an email to be From/Reply-To
'tremors(_at_)newjackswing(_dot_)dyn(_dot_)ml(_dot_)org' (since your reply
doesn't check for an
X-Loop, and the Subject: you send back has the word "test" in it also! That's
why I changed it to 't_e_s_t'
Speaking of tests, this recipe has not undergone any, so it may not work,
but it should ;-)
TjL