Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail as input to a script -- URGENT

Status
Not open for further replies.

starbuck

Programmer
Jul 31, 2001
1
US
I have written a script to generate text reports. Right now, the input to this script is a file. Can anyone tell me how I can read an e-mail as input and then get delete the e-mail once the reports are generated?
 
In the home directory of the user who will receive the email - create a file called .forward

Let's say you want to push (pipe, in unix-ees) your emails through a script called /usr/local/bin/mail_filter.sh so in that .forward file you would enter the following line.
[tt]
|/usr/local/bin/mail_filter.sh
[/tt]


That should do it :) Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top