cs::Newsrc - manipulate newsrc files
use cs::Newsrc;
This module loads and rewrites newsrc files. It optional has support for multiple news servers.
Parse a newsrc line and return group, server, subscribed and a cs::Range object specifying the article range. Returns the empty list on syntax errors. Returns the empty string for server if there is no @server appended to the group name.
Return a new cs::Newsrc object attached to file. Returns undef if file exists but cannot be read. The file will be rewritten on object destruction.
Groups()
Return a list of the groups in the newsrc, subscribed or not.
Add a new group to the newsrc, with optional seen articles range (a cs::Range, default empty) and status subscribed (default true). It is an error to call this for a known group.
Move the group to the front of the ordering.
Move the group to the back of the ordering.
Write the current state of the object to the specified file (or the file supplied to new if not specified).
Set or return the default server associated with this file.
Check if a group belongs to the specified server.
Return the range associated with the specified group@server.
Set the cs::Range object associated with group@server to range.
Set or return the subscription status of the group.
cs::NNTP(3)
Cameron Simpson <cs@zip.com.au> 11may2000