🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by John Moreno Fri, 11 Dec 1998 00:00
Re: Netscap 4.x as a News Reader....
#45188
Author: John Moreno
Date: Fri, 11 Dec 1998 00:00
24 lines
1407 bytes
Johnny Her <her@eagle.seed.net.tw> wrote:

> When I use Netscape 4.x Messenger connecting to my INN 2.1 news
> server, an error message emerged on my screen for Netscape:
> 
> "Cannot open newsgroup date file"
> 
> But I use the same program retriving other news server (e.g. DNEWS)
> articles, everything was very normal. I don't know what a newsgroup
> date file is. Could anybody give me some clues?

Clue #1) Question is best asked in news.software.readers
Clue #2) You probably have a corrupted preferences file

> --
> Johnny Her
> E-mail:her@eagle.seed.net.tw

Clue #3) The sigdash is two dashes and a space, not simply two dashes.

-- 
John Moreno

Re: Netscap 4.x as a News Reader....
#45177
Author: Fluffy
Date: Fri, 11 Dec 1998 00:00
60 lines
2406 bytes
On 11 Dec 1998, Fluffy wrote:
{of active.times ickiness}
> Also remember that if you ever add groups by manually editing active
> instead of using ctlinnd, those entries again will be missing.

Here's a toy to maintain the thing automagically, from news.daily or
something like that.

#! /usr/local/bin/perl
require 5;
use strict;

### Fix this up to match your site. ###
require "/news/sm/lib/innshellvars.pl" ;

my (%active, %times, $key);

open ACTIVE, "<$inn::active";
while (<ACTIVE>) {
  chomp;
  /^(\S+)/;
  $active{$1} = "";
}
close ACTIVE;

if (! -f $inn::activetimes) {
  open ACTTIMES, ">$inn::activetimes";
  close ACTTIMES;
}

# load in times, de-dupe while we're at it
open ACTTIMES, "<$inn::activetimes"
  or die("Can't open $inn::activetimes for reading - $!");
while (<ACTTIMES>) {
  chomp;
  /^(\S+)\s*(.*)$/;
  $times{$1} = $2;
}
close ACTTIMES;

# Fill in any missing active.times entries
for (keys(%active)) {
  $times{$_} = time() . " meow" if ! defined $times{$_};
}

rename($inn::activetimes, "$inn::activetimes.old")
  or die("Can't rename $inn::activetimes to $inn::activetimes.old - $!");

# Write out the new active.times sorted by date
open ACTTIMES, ">$inn::activetimes"
  or die("Can't open $inn::activetimes for writing - $!");
for $key (sort { $times{$a} <=> $times{$b} } keys %times) {
  next if ! defined($active{$key}); # drop entries not in active.
  print ACTTIMES $key , " ", $times{$key}, "\n";
}
close ACTTIMES;



Re: Netscap 4.x as a News Reader....
#45319
Author: Fluffy
Date: Fri, 11 Dec 1998 00:00
29 lines
1812 bytes
John Moreno <phenix@interpath.com> wrote:
> Johnny Her <her@eagle.seed.net.tw> wrote:
> 
> > When I use Netscape 4.x Messenger connecting to my INN 2.1 news
> > server, an error message emerged on my screen for Netscape:
> > 
> > "Cannot open newsgroup date file"
> 
> Clue #1) Question is best asked in news.software.readers

No.  This is a server problem.

> Clue #2) You probably have a corrupted preferences file

No.  The error message is produced by nnrpd when it fails to open
active.times upon receiving a NEWGROUPS command.  In INN 2,
active.times lives in the same db directory where active is found.

You can use something like this to create the file initially:

perl -ne 's/\s.*//s;print "$_ 800000000 meow\n"'<active>active.times

Also remember that if you ever add groups by manually editing active
instead of using ctlinnd, those entries again will be missing.
-- 
"FEAST!"
      --Alice

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