Thread View: news.software.readers
1 messages
1 total messages
Started by Stefan Scholl
Tue, 27 Oct 1998 00:00
Some kludge for slrn. Run after expire.
Author: Stefan Scholl
Date: Tue, 27 Oct 1998 00:00
Date: Tue, 27 Oct 1998 00:00
65 lines
1881 bytes
1881 bytes
#! /usr/bin/perl -w
# fixnewsrc4slrn
#
# slrn has problems with ranges. This is a kludge to fix it.
# ~~~~~~
# $Id: fixnewsrc4slrn,v 1.2 1998/01/02 13:39:52 stesch Exp stesch $
use News::Newsrc; # needs Set::IntSpan
use News::NNTPClient;
# --> defined globals
$newsrc = '.jnewsrc';
# <-- defined globals
# globals
#
# $nr := News::Newsrc object.
# $nn := News::NNTPClient object.
$nr = new News::Newsrc;
$nr->load($newsrc) || die "Can't open $newsrc: $!\n";
$nn = new News::NNTPClient || die "Can't connect to NNTP-server\n";
$nn->mode_reader();
@subs = $nr->sub_groups(); # subscribed groups
foreach $sg (@subs) {
print "\n$sg ";
next unless ($first, $last) = $nn->group($sg);
next if $first <= 1;
$nr->mark_range($sg, 1, $first - 1); # lomark.
# Now we have to check all the unread articles for existence
$ne = 0; # counter for non-exitent and unread articles
foreach $art ($nr->unmarked_articles($sg, $first, $last)) {
unless($nn->stat($art)) { # if non-existent
$ne++;
$nr->mark($sg, $art);
}
}
print "$first - $last ($ne)";
}
print "\n";
$nr->save();
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads