🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92693

High and low water marks vs active file

#92693
From: InterLinked
Date: Thu, 30 Apr 2026 22:47
54 lines
4003 bytes
Recently, I've been diving a bit deeper into the behavior of the high 
and low water marks and the active file, and I'm a bit confused as to 
how they relate.

RFC 3977 clearly spells out that the high and low water marks refer to 
the smallest and largest numbered articles in a newsgroup, with the 
caveat for empty groups when the high water mark is usually one less 
than the low water mark (and the low water mark is the former high water 
mark[1]).

However, the documentation for the active file in InterNetNews (INN)[2] 
says that <high> is the "highest article number that has ever been used 
in that newsgroup". This implies it is NOT the same as the reported high 
water mark, because the high water mark could decrease while <high> in 
this context is monotonically increasing - and the low and high water 
marks can be recomputed by scanning the spool directory, while <high> in 
the active file cannot (and thus needs to be stored persistently). 
Though it certainly doesn't help any that the name "high" is used for 
this value as well.

I've been perusing the source of InterNetNews (INN) to try to understand 
how it behaves, as a reference. It refers to the active file <high> as 
LAST in a few places, and this is used when assigning new article IDs in 
a group. This makes sense. For LIST COUNT and GROUP, it pulls from group 
stats, which I believe is ultimately some kind of database backend that 
provides the reported water marks and article count. However, in the 
response for LIST ACTIVE, it simply dumps the line from the active file 
as is. Yet, the RFC says the response format for LIST ACTIVE includes 
the reported high and low water marks.

I can't find any examples of newsgroups where the high water mark 
article is deleted, so it's hard to poke at this behavior, but it begs 
the following questions:

1. If "LAST" is an internal value used for assigning article IDs, and 
not the reported high water mark, then why is it being handed out as 
such for LIST ACTIVE? I would think it would use the actual reported 
high water mark, because if the high water mark article were deleted, 
then the response would have the wrong high water mark.

2. The same page says <low> in the active file is ~the low water mark 
but "not guaranteed to be accurate" and is just a hint. In INN, do the 
values of <low> in the active file ever differ from the low water mark 
in the group stats? Or are they distinct values like the active file 
<high> (LAST) and the low water mark?

Am I misunderstanding anything here about either INN's behavior or the 
intention in the RFC? (And while I've used INN as an example, my 
interest is more about "correct" news server behavior in general.)

Thanks!

[1] https://github.com/InterNetNews/inn/issues/250
[2] https://www.eyrie.org/~eagle/software/inn/docs/active.html
Technical Details
Message-ID: <10t0m5h$1177o$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: InterLinked <nntp@phreaknet.org>
Newsgroups: news.software.nntp
Subject: High and low water marks vs active file
Date: Thu, 30 Apr 2026 18:47:11 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <10t0m5h$1177o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 30 Apr 2026 22:47:14 +0000 (UTC)
Injection-Info: dont-email.me; posting-host="6fc1eec3136e3b61c00a5fd6e743ae49";
	logging-data="1088760"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+XIYFSYYmZoXJO6C5xlTf/pY2U3IFD7rY="
Cancel-Lock: sha1:0AlJFRVqj4ZIMfHrD/Fs2jgM0dU=
X-Mozilla-News-Host: news://alt.bbs.synchronet:119
X-Mailer: MailNews/52.9.9224a1
Content-Language: en-US