changes on checkThaMail

Bug fixes