Mega Code Archive
Categories
/
Ruby
/
Network
Downloading all the mails is as simple as using the pop method for each Net
require 'net/pop' mail_server = Net::POP3.new('mail.mailservernamehere.com') mail_server.mails.each do |m| mail = m.pop puts mail end