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 firstname.lastname@example.org whenever anew mail arrives i would like to forward this mail to my sms account which has an email id like email@example.com
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]