Fixes for get mail id and get mails after date