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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.