def authenticateUserAPOP(self, user, digest):
        # Override the default lookup scheme to allow virtual domains
        user, domain = self.lookupDomain(user)
        try:
            portal = self.service.lookupPortal(domain)
        except __HOLE__:
            return defer.fail(cred.error.UnauthorizedLogin())
        else:
            return portal.login(
                pop3.APOPCredentials(self.magic, user, digest),
                None,
                pop3.IMailbox
            )
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/mail/protocols.py/VirtualPOP3.authenticateUserAPOP