Some changes in mailcheck.sh