Method: Net::POP3Command#list

Defined in:
lib/pop_ssl.rb

#listObject



898
899
900
901
902
903
904
905
906
907
908
909
# File 'lib/pop_ssl.rb', line 898

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