parameters: (self, host = '', port = IMAP4_PORT)
docstring: 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.
docstring_summary: 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.
docstring_tokens: 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 .
function: 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')
function_tokens: 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' )