class Net::POPMail

def pop( dest = +'', &block ) # :yield: message_chunk

:yield: message_chunk

This method raises a POPError if an error occurs.

end
end
n += 1
end
end
f.write chunk
popmail.pop do |chunk| ####
File.open("inbox/#{n}", 'w') do |f|
pop.mails.each do |popmail|
n = 1
'YourAccount', 'YourPassword') do |pop|
POP3.start('pop.example.com', 110,

=== Example with block

end
end
n += 1
popmail.delete
end
f.write popmail.pop
File.open("inbox/#{n}", 'w') do |f|
pop.mails.each do |popmail|
n = 1
'YourAccount', 'YourPassword') do |pop|
POP3.start('pop.example.com', 110,

=== Example without block

argument is essentially obsolete.
+dest+ argument will be prepended to the returned String; this
without a block, the message is returned as a String. The optional
message is yielded to the block one chunk at a time. If called
This method fetches the message. If called with a block, the
def pop( dest = +'', &block ) # :yield: message_chunk
  if block_given?
    @command.retr(@number, &block)
    nil
  else
    @command.retr(@number) do |chunk|
      dest << chunk
    end
    dest
  end
end