class Net::POPMail

def top(lines, dest = +'')

This method raises a POPError if an error occurs.

The optional +dest+ argument is obsolete.

Fetches the message header and +lines+ lines of body.
def top(lines, dest = +'')
  @command.top(@number, lines) do |chunk|
    dest << chunk
  end
  dest
end