method
get_tagged_response
get_tagged_response(tag, cmd)
private
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