added mailcheck function to parse mail log for sent mails and ips