🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92593

Re: inn: shrinking a cycbuff while keeping articles

#92593
From: Julien ÉLIE
Date: Wed, 24 Dec 2025 14:09
80 lines
4785 bytes
Hi Adam,
> "    and qx/sm -q -H "$_" | grep Xref/ =~ / fr\.\S+:\d+/"
> 
> perl always sounded like magic spells to me...

   sm -q -H "$_" | grep Xref

extracts the Xref header field from the article, using sm:
   https://www.eyrie.org/~eagle/software/inn/docs/sm.html

   this header =~ / fr\.\S+:\d+/

then checks whether the article was stored in a newsgroup belonging to 
the fr.* hierarchy.  This way, only articles for fr.* match the condition.


> 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)?

Yes, you can do that if you want.  It would retain the article numbers.


> "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?

Gaps are allowed in the numbering anyway (cancelled articles generate 
gaps as their article number is not reused).


> 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?

Yes, the article will be accepted, and still be article number 3 in the 
new news server.


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

Some people prefer that because of the way news clients work.
If you have only article number 3 and a client reads the newsgroup, it 
will fetch this article.  Afterwards, it will only try to download 
articles whose number is higher than 3.  So if you receive articles 1 
and 2 later, the client won't know they exist.

Note that when the server has article 3, and a bit later 1 and 2, and a 
client reads the newsgroup at that time, it will naturally fetch all 
these 3 articles.

After all, it only matters for clients if they access the news server 
during the time of the migration.  Maybe this precision should be added 
to the documentation to make it clearer?


> 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?

Yes, the slave will have the same messed up numbers, if any, as the old 
server.  Migrating is just the opportunity to do a bit of reordering if 
desired :)
Xref order corresponds to arrival time.

-- 
Julien ÉLIE

« Je suis capable du meilleur comme du pire, mais pour le pire, c'est
   moi le meilleur. » (Coluche)
Technical Details
Message-ID: <10igs60$21kb9$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:18be:131a:494b:5523!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> <f1b277af-7225-4f93-b651-700ccd4ca78b-aw@news.chmurka.net>

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!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:18be:131a:494b:5523!not-for-mail
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Newsgroups: news.software.nntp
Subject: Re: inn: shrinking a cycbuff while keeping articles
Date: Wed, 24 Dec 2025 15:09:04 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <10igs60$21kb9$1@news.trigofacile.com>
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>
 <f1b277af-7225-4f93-b651-700ccd4ca78b-aw@news.chmurka.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 24 Dec 2025 14:09:04 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2001:861:3f81:7990:18be:131a:494b:5523";
	logging-data="2150761"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VQrvPfsmbG2YpneDaBcpdzJEI6M= sha256:Jq7tgzebbtU/RBlHuMrKxYtaZPc3V+v7TTQSqXuKHfw=
	sha1:hGbqpy1chtzBoQQ+7JmKRMqto1U= sha256:3wK1zjHexUr6sWyY4DgKgNs/DYiJKAzVu29dyxg47YA=
In-Reply-To: <f1b277af-7225-4f93-b651-700ccd4ca78b-aw@news.chmurka.net>