top

top(lines, dest = '') Instance Public methods Fetches the message header and lines lines of body. The optional dest argument is obsolete. This method raises a POPError if an error occurs.

pop

pop( dest = '' ) Instance Public methods This method fetches the message. If called with a block, the message is yielded to the block one chunk at a time. If called without a block, the message is returned as a String. The optional dest argument will be prepended to the returned String; this argument is essentially obsolete. Example without block POP3.start('pop.example.com', 110, 'YourAccount, 'YourPassword') do |pop| n = 1 pop.mails.each do |popmail| File.op

mail

mail( dest = '' ) Instance Public methods Alias for: pop

inspect

inspect() Instance Public methods Provide human-readable stringification of class state.

header

header(dest = '') Instance Public methods Fetches the message header. The optional dest argument is obsolete. This method raises a POPError if an error occurs.

deleted?

deleted?() Instance Public methods True if the mail has been deleted.

delete!

delete!() Instance Public methods Alias for: delete

delete

delete() Instance Public methods Marks a message for deletion on the server. Deletion does not actually occur until the end of the session; deletion may be cancelled for all marked messages by calling Net::POP3#reset. This method raises a POPError if an error occurs. Example POP3.start('pop.example.com', 110, 'YourAccount, 'YourPassword') do |pop| n = 1 pop.mails.each do |popmail| File.open("inbox/#{n}", 'w') do |f| f.write popmail.pop end popmail.

all

all( dest = '' ) Instance Public methods Alias for: pop

use_ssl? 2

use_ssl?() Instance Public methods does this instance use SSL?