'Parses the HTML and adds the mail addresses to the kb.'

def _parse_document(self, response):

    get_document_parser_for = parser_cache.dpc.get_document_parser_for
    try:
        document_parser = get_document_parser_for(response, cache=False)
    except BaseFrameworkException:
        pass
    else:
        for mail in document_parser.get_emails(self._domain_root):
            if (mail not in self._accounts):
                self._accounts.append(mail)
                desc = 'The    mail    account:    "%s"    was    found    at:    "%s".'
                desc = (desc % (mail, response.get_uri()))
                i = Info('Email    account', desc, response.id, self.get_name())
                i.set_url(response.get_uri())
                i['mail'] = mail
                i['user'] = mail.split('@')[0]
                i['url_list'] = {response.get_uri()}
                self.kb_append('emails', 'emails', i)
