🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #671

news 2.11.19 expire -r and nntpd

#671
From: Wietse Venema
Date: Thu, 06 Sep 1990 14:45
35 lines
1916 bytes
When setting up a number of news feeds through nntp, I stumbled across
a minor problem with the way that B news 2.11.19 expire(8) creates a
new-style history data base (C news style) from scratch.

nntpd, upon receipt of a NEWNEWS command, performs a binary search on
the history file in order to identify all messages that arrived after a
specified point in time. This requires that the history file be sorted
with respect to arrival time of articles.

It seems that the sort(1) command used by expire(8) when rebuilding the
history file from scratch (-r option) still assumes old history file
format, causing the history file to be sorted with respect to the wrong
fields. The following unoffical fix takes care of the problem.

*** expire.c-	Thu Dec 21 12:18:05 1989
--- expire.c	Thu Aug 30 16:28:09 1990
***************
*** 360,366
  					sizeof (struct multhist));
  			mh_size = SPACE_INCREMENT;
  
! 			(void) sprintf(afline, "exec sort -t\t +1.6 -2 +1 >%s",
  #ifdef DBM
  			NARTFILE);
  #else /* !DBM */

--- 360,366 -----
  					sizeof (struct multhist));
  			mh_size = SPACE_INCREMENT;
  
! 			(void) sprintf(afline, "exec sort -t'\t' +1 >%s",
  #ifdef DBM
  			NARTFILE);
  #else /* !DBM */
Technical Details
Message-ID: <1396@svin02.info.win.tue.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!hp4nl!svin02!svbs01!wswietse

Show Full Headers
Complete Article Headers
Message-ID: <1396@svin02.info.win.tue.nl>
Subject: news 2.11.19 expire -r and nntpd
Date: Thu, 06 Sep 1990 14:45:16 +0000
From: wswietse@svbs01.bs.win.tue.nl (Wietse Venema)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!hp4nl!svin02!svbs01!wswietse
Newsgroups: news.software.b,news.software.nntp
Sender: news@svin02.info.win.tue.nl
Reply-To: wswietse@bs.win.tue.nl
Followup-To: news.software.b,news.software.nntp
Lines: 34