method
search_internal
v1_9_3_125 -
Show latest stable
- Class:
Net::IMAP
search_internal(cmd, keys, charset)private
No documentation available.
# File lib/net/imap.rb, line 1320
def search_internal(cmd, keys, charset)
if keys.instance_of?(String)
keys = [RawData.new(keys)]
else
normalize_searching_criteria(keys)
end
synchronize do
if charset
send_command(cmd, "CHARSET", charset, *keys)
else
send_command(cmd, *keys)
end
return @responses.delete("SEARCH")[-1]
end
end