'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):

    self.host = host
    self.port = port
    self.sock = socket.create_connection((host, port))
    self.file = self.sock.makefile('rb')
