Thread View: news.software.nntp
1 messages
1 total messages
Started by Wietse Venema
Thu, 06 Sep 1990 14:45
news 2.11.19 expire -r and nntpd
Author: Wietse Venema
Date: Thu, 06 Sep 1990 14:45
Date: Thu, 06 Sep 1990 14:45
35 lines
1916 bytes
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 */
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