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

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.

uidl

uidl() Instance Public methods Alias for: unique_id

unique_id

unique_id() Instance Public methods Returns the unique-id of the message. Normally the unique-id is a hash string of the message. This method raises a POPError if an error occurs. uidl

new

new(status, string) Class Public methods Creates a new instance of the Response class and sets the status and string attributes

parse

parse(str) Class Public methods Parses the received response and separates the reply code and the human readable reply text

capabilities

capabilities() Instance Public methods Returns a hash of the human readable reply text in the response if it is multiple lines. It does not return the first line. The key of the hash is the first word the value of the hash is an array with each word thereafter being a value in the array

continue?

continue?() Instance Public methods Determines whether the response received was a Positive Intermediate reply (3xx reply code)

cram_md5_challenge

cram_md5_challenge() Instance Public methods Creates a CRAM-MD5 challenge. You can view more information on CRAM-MD5 on Wikipedia: en.wikipedia.org/wiki/CRAM-MD5

exception_class

exception_class() Instance Public methods Determines whether there was an error and raies the appropriate error based on the reply code of the response