Hi,
I routinely get email messages of the following form:
EMAIL=someone(_at_)somedomain(_dot_)com
NAME=Somebody Someone
I was hoping that I could extract the value from the EMAIL field and
save it as an environment variable in a procmail script. The variable
would then be used to address an automated response to the person at
that email address. I think I have the whole script down except the
(somewhat important) part about extracting the email address. After
reading through the man pages and looking at some things on the Internet
I came up with
FROM=grep -v NAME | awk -F= '{print $2}'
Of course, this doesn't work and I've exhausted my minimal UNIX
knowledge.
I would be indebted to anyone who can help me out.
Thanks,
David Warner
PS--Sorry about the long subject line
--
___________________________________________
| |
| DAVID G. WARNER |
| Computer Science 101 Teaching Assistant |
| Washington University in St. Louis |
| Email: dgw1(_at_)cec(_dot_)wustl(_dot_)edu |
| Phone: (314) 935-1159 |
| WWW: http://userfs.cec.wustl.edu/~dgw1/ |
| |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~