(self, host = '', port = IMAP4_PORT)
Setup connection to remote server on "host:port"
            (default: localhost:standard IMAP4 port).
        This connection will be used by the routines:
            read, readline, send, shutdown.
Setup connection to remote server on "host:port"
            (default: localhost:standard IMAP4 port).
        This connection will be used by the routines:
            read, readline, send, shutdown.
Setup connection to remote server on host : port ( default : localhost : standard IMAP4 port ) . This connection will be used by the routines : read readline send shutdown .
def open(self, host = '', port = IMAP4_PORT):
        """Setup connection to remote server on "host:port"
            (default: localhost:standard IMAP4 port).
        This connection will be used by the routines:
            read, readline, send, shutdown.
        """
        self.host = host
        self.port = port
        self.sock = socket.create_connection((host, port))
        self.file = self.sock.makefile('rb')
def open ( self , host = '' , port = IMAP4_PORT ) : self . host = host self . port = port self . sock = socket . create_connection ( ( host , port ) ) self . file = self . sock . makefile ( 'rb' )