Filter function of mails;