πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92590

Re: inn: shrinking a cycbuff while keeping articles

#92590
From: Adam W.
Date: Wed, 24 Dec 2025 02:47
63 lines
4194 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> I have to move my server to another machine and want to reshape the
>> spooling system
> 
> That's the opportunity to improve the design of your storage method(s).

Yup... But it's too late now, I moved the server by copying files. Which 
didn't solve the problem, obviously, but I wanted to be 1000% sure users 
won't run into any numbering problems.

> The slave mode (xrefslave set to true in inn.conf) will keep the same 
> article numbers; you can rely on it.
> Please have a look at "6.4 Feed all articles on a server to another server":
>   https://www.eyrie.org/~eagle/faqs/inn.html#S6.4

"    and qx/sm -q -H "$_" | grep Xref/ =~ / fr\.\S+:\d+/"

perl always sounded like magic spells to me...

> The wording in the documentation is unfortunate.  I suggest changing it 
> to "If set, INN duplicates exactly the article numbering [...]" and 
> adding "If there is no Xref header field or it is unparseable, the 
> article is rejected."

This sounds more convincing :)

I'm wondering if I should set up a new server (on the same machine) with 
my desired spooling layout, feed articles to it using this method, and 
then just swap the databases (active, overview, spool + spool config). 
Would it work (and keep the article numbers exactly as they are now)?

> If you follow the procedure in the above FAQ, the articles are sent by 
> arrival time on the old news server, so the article numbers are in order 
> (assuming it was not running itself as a slave).

This is a little confusing to me.

"The result file contains tokens ordered by arrival time on the old server 
(which is usually roughly the same as the posting time). In case the 
history file was not populated chronologically, it is better to sort it by 
posting time so that articles are fed in the right order."

If the history file on the old server isn't in order (so it's messed up, 
some older articles have newer numbers) and I sort it this way, I'll end 
up having gaps in the numbering, right?

So, let's say there's an empty group on a new server, and the first 
article sent has Xref 3. There's no 1 or 2 yet. What would happen then? 
Would the article be accepted?

If yes, then why is it important to send articles in date order, if 
they'll end up with correct numbers anyway?

If not, then why is it important to send articles in date order, if they 
can be out of order on the source server? Shouldn't we send them based on 
Xref (article number) order? Numbering will be messed up on the new server 
in the same way it's messed up on the old server then, but with xref slave 
it's desirable, isn't it?

> I hope the new wordings are now better.  Thanks for pointing that out!

Yes, it's more convincing now :)
Technical Details
Message-ID: <f1b277af-7225-4f93-b651-700ccd4ca78b-aw@news.chmurka.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.chmurka.net!.POSTED.172.24.44.20!not-for-mail
References: <800dd3c3-950c-4d38-9811-3ef37c501e54-aw@news.chmurka.net> <10i8gpk$1s1ci$1@news.trigofacile.com> <b9f026a8-5267-43d9-9cab-562db233e92d-aw@news.chmurka.net> <10i9i9k$1sbtr$1@news.trigofacile.com>

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!news.chmurka.net!.POSTED.172.24.44.20!not-for-mail
From: aw@somewhere.invalid (Adam W.)
Newsgroups: news.software.nntp
Subject: Re: inn: shrinking a cycbuff while keeping articles
Date: Wed, 24 Dec 2025 02:47:41 -0000 (UTC)
Organization: news.chmurka.net
Message-ID: <f1b277af-7225-4f93-b651-700ccd4ca78b-aw@news.chmurka.net>
References: <800dd3c3-950c-4d38-9811-3ef37c501e54-aw@news.chmurka.net> <10i8gpk$1s1ci$1@news.trigofacile.com> <b9f026a8-5267-43d9-9cab-562db233e92d-aw@news.chmurka.net> <10i9i9k$1sbtr$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Dec 2025 02:47:41 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="172.24.44.20";
	logging-data="7761"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.6.4-20241224 ("Helmsdale") (Linux/6.1.21-v7+ (armv7l))
Cancel-Lock: sha1:3YccWPq1zWXBcQ/eo7QbX5pNdYQ=
	sha1:nhWn7VkUVDCzNk6s9x41Tpfyv0M= sha256:J9JmF6y4SO+SC1y4NtrAKiivNJCylV28m+u1PfmsPb8=
	sha1:jfet9qe6iS2xeGQAvqsLUnP+ATc= sha256:1ksGEosqFFwKbpMKcKmfhKzMZprCBE0DV320q4yDGC8=