'Open a network connection.'

def open(self):

    new_conn = self.real_backend.open()
    if (new_conn is True):
        self.log(logging.DEBUG, 'Succesfully    opened    new    connection.')
    elif (new_conn is False):
        self.log(logging.DEBUG, 'Did    not    open    a    new    connection.    (Either    cached    or    failed)')
    elif (new_conn is None):
        self.log(logging.DEBUG, 'Opened    a    new    connection.    (Unknown    status)')
    else:
        raise AssertionError(('Unexpected    return    from    email    backend    open    method:    %r.' % (new_conn,)))
    return new_conn
