(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 = self._create_socket()
        self.file = self.sock.makefile('rb')
def open ( self , host = '' , port = IMAP4_PORT ) : self . host = host self . port = port self . sock = self . _create_socket ( ) self . file = self . sock . makefile ( 'rb' )