mail header variables

Joel Dudley Joel.Dudley@DevelopOnline.com
Mon, 6 Nov 2000 11:36:56 -0700


Hello,
	I wanto be able to exctract the Subject and To header information
ffrom mail going to a specified user on my system.  I then want to export
those variables to another script that I wrote (as $SUBJECT and $TO).  what
should my .procmailrc for that file look like?

I have

:0
SUBJECT=`formail -xSubject:`
TO='formail -xTo:`
| /home/user/script

in my current .procmailrc and it does not seem to be working.  Any ideas?
Thanks for reading my message.

Joel Dudley
Unix System Administrator 
DevelopOnline.com
----------------------------------------
"For the scientist who has lived by his faith in the power of reason, the
story ends like a bad dream. He has scaled the mountains of ignorance; he is
about to conquer the highest peak; as he pulls himself over the final rock,
he is greeted by a band of theologians who have been sitting there for
centuries."
- Dr. Robert Jastrow, Founder Goddart Space Flight Institute