On Wednesday 26 March 97, at 20 h 6, the keyboard of "Timothy J. Luoma"
<luomat(_at_)peak(_dot_)org> wrote:
I would like to be able to setup a thing where they could send me a
message with a certain subject and get an automated response -- but
the response would/should include all the headers from their
original message (so they can check out their 'From ' lines, etc.)
Here is what I use (send a message to echo(_at_)globenet(_dot_)org to see the
results):
:0:/tmp/echo.procmail.lock
* ^To: *echo
* !^FROM_DAEMON
* !^X-Loop: echo(_at_)globenet(_dot_)org
{
HEADERS=`formail -X ""`
BODY=`formail -I "" | sed 's/^/> /' `
:0
| (formail -rt -A"Precedence: junk" \
-A"X-URL: http://www.globenet.org/" \
-A"From: postmaster (Echo service)" \
-A"X-Loop: echo(_at_)globenet(_dot_)org" \
;\
echo "Message bien recu."; echo ""; echo "----"; \
echo "Les en-tetes etaient : "; echo ""; \
echo "${HEADERS}"; echo ""; echo "----"; \
echo "Le corps du message etait : "; echo ""; \
echo "${BODY}"; echo ""; echo "----";\
echo "GlobeNet, Le serveur a but humanitaire..."; \
echo "http://www.globenet.org/") | $SENDMAIL -t
}