'Searches a PKS server, and returns all emails related to hostname.
:param hostname: The hostname from which we want to get emails from.'

def search(self, hostname):

    if hostname.count('//'):
        msg = 'You    must    provide    the    PKS    search    engine    with    a    root    domain    name    (as    returned    by    URL.get_root_domain).'
        raise BaseFrameworkException(msg)
    res = self.met_search(hostname)
    msg = 'PKS    search    for    hostname:    "%s"    returned    %s    results.'
    om.out.debug((msg % (hostname, len(res))))
    return res
