method
list
v1_8_6_287 -
Show latest stable
- Class:
Net::POP3Command
list()public
No documentation available.
# File lib/net/pop.rb, line 779
def list
critical {
getok 'LIST'
list = []
@socket.each_list_item do |line|
m = /\A(\d+)[ \t]+(\d+)/.match(line) or
raise POPBadResponse, "bad response: #{line}"
list.push [m[1].to_i, m[2].to_i]
end
return list
}
end