Method: Net::POPMail#top

Defined in:
lib/net/pop.rb

#top(lines, dest = +'')) ⇒ Object

Fetches the message header and lines lines of body.

The optional dest argument is obsolete.

This method raises a POPError if an error occurs.



825
826
827
828
829
830
# File 'lib/net/pop.rb', line 825

def top(lines, dest = +'')
  @command.top(@number, lines) do |chunk|
    dest << chunk
  end
  dest
end