From: Enrique Meza Date: 2003-09-04T04:45:44+09:00 Subject: Re: fastest way to parse pop mails? > > i want to use net/pop and receive the headers to sort them into my > > listview. but whats the fastest way to do that? receive the header and > > then use the .split member and grep or is there something more powerful i > > could use? Try this: require 'net/pop' host = 'mail.mycompany.com' port = 110 user = 'test' pass = 'test' pop = Net::POP3.new(host, port) pop.start(user, pass) { puts "# of mails: #{pop.mails.size}" pop.each_mail do |mail| puts mail.header end } -- Enrique Meza Jarabe Soft