def __init__(self, server, username, password): POP3.__init__(self, server, 101) self.set_debuglevel(2) self.user(username) response = self.pass_(password) if response[:3] != "+OK": raise Exception(response)
def __init__(self, server, username, password): "Po³±cz siê z serwerem POP3." POP3.__init__(self, server, 110) #Usuñ komentarz z poni¿szego wiersza, by zobaczyæ pe³en proces komunikacji. #self.set_debuglevel(2) self.user(username) response = self.pass_(password) if response[:3] == '+OK': #Wyst±pi³ problem z po³±czeniem. raise Exception, response
def __init__(self, server, username, password): "Connect to the POP3 server." POP3.__init__(self, server, 110) #Uncomment this line to see the details of the POP3 protocol. #self.set_debuglevel(2) self.user(username) response = self.pass_(password) if response[:3] != '+OK': #There was a problem connecting to the server. raise Exception(response)
def __init__(self, server, username, password): "Connect to the POP3 server." POP3.__init__(self, server, 110) #Uncomment this line to see the details of the POP3 protocol. #self.set_debuglevel(2) self.user(username) response = self.pass_(password) if response[:3] != '+OK': #There was a problem connecting to the server. raise Exception (response)
def __init__(self,host,port,username,password,tun_type,timeout=5000.0,debug_level=5): self.set_debuglevel(debug_level) logging.info(FILENAME + ": Connecting %s:%s" % (host,port)) POP3.__init__(self, host, port, timeout=timeout) self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) self.username = username self.password = password self.tun_type=tun_type self._local = None self._remote = None self._ipv6 = None
def __init__(self, host, port, username, password, tun_type, timeout=5000.0, debug_level=5): self.set_debuglevel(debug_level) logging.info(FILENAME + ": Connecting %s:%s" % (host, port)) POP3.__init__(self, host, port, timeout=timeout) self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) self.username = username self.password = password self.tun_type = tun_type self._local = None self._remote = None self._ipv6 = None