libruby-nntp by Anton Bangratz

DESCRIPTION

The Net::NNTP library provides a simple communication layer for the NNTP (Network News Transfer Protocol).

FEATURES

The Net::NNTP library provides a communication layer in Net::XXX style for NNTP.

SYNOPSIS

Net::NNTP uses a simple interface to wrap commands to communicate with an NNTP server.

Example

nntp = Net::NNTP.new('localhost')
if nntp.authenticate('user', 'xxxx')
  nntp.group 'alt.test'
  if nntp.next
    article = nntp.article
  end
end

INSTALL

  • sudo gem install libruby-nntp or

  • sudo dpkg -r libruby-0.0.1.deb

CHANGES

Version 0.1.0 introduces the Net::NNTP::Article#headers and #body attributes. Due to this, the attribute Net::NNTP::Article#id has been changed to Net::NNTP::Article#number to avoid conflicts with Object#id.

Additionally, on request, Net::NNTP::Article has been changed from being a mere proxy for Net::NNTP#xover result lines to being able to parse HEAD, BODY and ARTICLE results and return a corresponding instance.