Shell script for getting mails