I would like to write a shell script that perodically checks for a users mail box and then forwards the mail to the users sms account .
say for example my mail server is sendmail.com and my email is email@example.com whenever anew mail arrives i would like to forward this mail to my sms account which has an email id like firstname.lastname@example.org
also i would like to keep a simple text file containg the email ids of my contacts whenever i receive a mail from one of these contacts that the mail should be forwarded to my sms account not otherwise.
could anybody gimme a shell script for this.as i am new to shell scripts.
[Edited by hrishy on 08-22-2001 at 11:35 PM]