🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9980

Problem with killfiles when NOV #define'd

#9980
From: Pond Scum
Date: Fri, 15 Mar 2002 09:11
35 lines
2695 bytes
I'm running nn 6.6.2 and for the longest time, killfiles have been flaky.
I searched on Google and found that this question has been asked before
("Why do my killfiles stop working?"), but I didn't find an answer.  I
finally got frustrated enough to look into this and spent the last hour
debugging on my ISP's shell machine.  This is what I've found:

The killfile entries that are not working are the group-specific entries,
and the reason they are not working is (I think) that new groups have been
added on the NNTP reader server (my ISP has separate servers for NNTP
transport and NNTP newsreading).  The compiled killfile contains something
like group numbers to match killfile entries to groups, and when groups are
added on the NNTP newsreader server, the association between this number,
and the actual group is broken, so the killfile entries are applied to the
wrong group, and it appears that the killfile is no longer working.

init_kill() depends on this test to decide whether to recompile the
kill file:

    if (header.ckh_db_check != master.db_created) goto err;

and with NOV #define'd, master.db_created is always 0, which is the value
written to the compiled kill file.  So this test never fails, so the only
time the kill file is compiled is if you type ":compile", or add an entry
to the kill file (or modify it by hand).

Since I run an executable built from my own copy of the source (rather than
the ISP's version), I'm tempted to just change the code to force a recompile
of the killfile every time I run nn.  I've scanned thru the NNTP commands, and
it looks like it might be possible to use the NEWGROUPS command to at least
find out that there are new newsgroups, and force a recompile.  I'm too lazy
to implement that right now though.

-Jonathan		jhue@geocities.com
Technical Details
Message-ID: <sVik8.4333$44.33558@typhoon.sonic.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!HSNX.atgi.net!feed.news.sonic.net!typhoon.sonic.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <sVik8.4333$44.33558@typhoon.sonic.net>
Subject: Problem with killfiles when NOV #define'd
Date: Fri, 15 Mar 2002 09:11:52 GMT
From: jhue@geocities.com (Pond Scum)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!HSNX.atgi.net!feed.news.sonic.net!typhoon.sonic.net!not-for-mail
Newsgroups: news.software.nn
Reply-To: jhue@geocities.com
Organization: Nerds 'R Us
User-Agent: nn/6.6.2
Lines: 34
NNTP-Posting-Host: 208.201.242.18
X-Complaints-To: abuse@sonic.net
X-Trace: typhoon.sonic.net 1016183512 208.201.242.18 (Fri, 15 Mar 2002 01:11:52 PST)
NNTP-Posting-Date: Fri, 15 Mar 2002 01:11:52 PST