Script to search mails offline