def __init__(self, *a, **kw): ESMTPFactory.__init__(self, *a, **kw) self.delivery = ConsoleMessageDelivery() self.challengers = { 'LOGIN': LOGINCredentials, 'PLAIN': PLAINCredentials }
def buildProtocol(self, addr): p = ESMTPFactory.buildProtocol(self, addr) #self.delivery.cb = self.cb #p.delivery = self.delivery p.peer = addr.host p.portal = self.portal return p