def validateFrom(self, helo, origin):
        log.msg("validateFrom(): %s" % origin)

        if not helo:
            raise smtp.SMTPBadSender(origin, 503, "Who are you?  Say HELO first.")
        if origin.local != '':  # if local user
            self.orig_is_local = True  # a flag that validateTo will use.
            log.msg("DEBUG: setting orig_is_local=True")
        if origin.local != '' or origin.domain == '':
            raise smtp.SMTPBadSender(origin, 501, "Sender address must contain domain.")
        return origin
dataset/ETHPy150Open tkanerva/openmail/OpenMail/openmail/mytap.py/MyESMTPDomainDelivery.validateFrom/operator `and` -> `or`