get_tagged_response(tag, cmd) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/net/imap.rb, line 1020
    def get_tagged_response(tag, cmd)
      until @tagged_responses.key?(tag)
        raise @exception if @exception
        @tagged_response_arrival.wait
      end
      resp = @tagged_responses.delete(tag)
      case resp.name
      when /\A(?:NO)\z/i
        raise NoResponseError, resp.data.text
      when /\A(?:BAD)\z/i
        raise BadResponseError, resp.data.text
      else
        return resp
      end
    end
Register or log in to add new notes.