
Gnus::Newsrc - parse ~/.newsrc.eld files

$newsrc = Gnus::Newsrc->new;
($level, $read, $marks, $server, $group_para) =
@{$newsrc->alist_hash->{"comp.lang.perl.misc"}};

The Gnus::Newsrc objects represents the content of the ~/newsrc.eld files that the Gnus newsreader use to store away its state.
The following methods are provided:
The object constructor takes an optional filename as argument. The file defaults to ~/.newsrc.eld. It will read and parse the file and return a reference to a Gnus::Newsrc object. The constructor will croak if the file can't be found or can't be parsed.
Return the version number found in the file (gnus-newsrc-file-version). The version number is a string like "Gnus v5.5".
Returns a string like "Sat Oct 18 14:05:53 1997" (gnus-newsrc-last-checked-date).
Returns a reference to an array that will have one element for each active newsgroup (gnus-newsrc-alist). Each element is a array with the following values:
$group_name $group_level $read_articles \%marks \@server \%group_parameters
The $read_articles and %marks values is a string of integer ranges, and it is suitable for initializing a Set::IntSpan objects.
Returns a reference to a hash indexed by group names. The hash values are the same as the alist elements, but the $group_name is missing.
(gnus-server-alist).
A reference to an array that contains all the killed newsgroups (gnus-killed-list).
A reference to an array that contains all zombie newsgroups (gnus-zombie-list).

Set::IntSpan, http://www.gnus.org

Copyright 1997 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.