Sending Emails to a unix process

Hi ,

I need to have a unix process which is setup to read all incoming mail for some user and process the same.
How tough it is to code the same.Is there any way that we can
download some shell scripts for the same from some internet site

Kindly help.

What are you hoping to do with the mail once its been read?

Forward it? Copy it?

u4ia-F8

You can use procmail for process incoming mail.

Main config /etc/procmail.rc

Basic syntax:
#
:0H
*(^To|^Cc).*username\@.*
|/usr/bin/yourscript.sh
#

This mean:
All mail for username@server.name
direct to script /usr/bin/yourscript.sh

Sincerely,
Andrew A.Romanchenko
Programmer of Rapid Internet Development Department
Alar Information Technologies, www.AlarIT.com