in reply to how to detect an email ?

I want to fire one script , after detecting mail from respective people

1. Read the procmail manpage

then how to writ escript for this.

2. Read the vi manpage If that doesn't work, ask your sysadmin to install them, and then GOTO 1.