Hi
I was wondering if could tell me how I would go about writing a script that
forwards mail to another address. This seems very simple except the fact
that I would like to use this script with procmail.
What I want to achieve in the end is something where procmail is used to
filter through incoming messages and depending on who is sending the message
different scripts are executed. There is one script I would like so that
whenever a friend of mine emails me the subject header and date header are
forwarded to an email address to my cell phone. I am NOT asking for advice
on using procmail, just wondering how I would get the information of the
headers in the shell script from procmail or if after procmail has processed
the incoming mail the information is stored in some kind of enviroment
variables or something that I can access in the script??? Or does anyone
know of any Perl modules that might be able to let me access this
information? Although I would prefer just to write a shell script.
Sorry for the long-windedness of the question it's just that I didn't want
replies about how to use procmail.
I would appreciate it if you could send me any replies to
Thanks for your time and help.
Su