πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92592

Re: inn: shrinking a cycbuff while keeping articles

#92592
From: Nigel Reed
Date: Wed, 24 Dec 2025 05:04
52 lines
3036 bytes
On Sun, 21 Dec 2025 11:05:40 +0100
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Adam,
> 
> > I need to shrink one of my cycbuffs, but keeping articles
> > (including their numbers) intact. Creating a new cycbuff, moving
> > articles to it, and then adding it to inn instead of the old
> > cycbuff, will also do the trick. Is it possible? If yes, then how
> > to best approach it? It would be best if I didn't have to rebuild
> > overview after that...  
> 
> I do not unfortunately know an easy way to achieve that.
> I am aware of a program named "respool" in the contrib directory of
> INN but I have never tested it...  It would do what you want
> according to its comment "Refile articles into the storage manager
> under the current storage.conf rules, deleting articles from their
> old place in the spool." However, rebuilding overview would still be
> needed.
> 
> Usually, if I want to change where or how I store articles, I set up 
> another instance of INN and refeed all my articles to this new
> instance (in slave mode so as to keep the original article numbers).

I have mentioned before that there really needs to be a way to compress
articles within a cycbuff file. It's probably not as simple as:

1. Find the first deleted article and calculate the number of bytes
used.
2. take that number of bytes from the end of the first article and
rewrite them noting the end point. Re-write some pointer to where the
new article is.
3. rinse and repeat sort of stuff until you've gone through the file
and shuffled up all the bytes over the deleted articles.

Like compressing your message file on your Apple II BBS but on a bigger
scale :)

Obviously it would take someone who knows the format of cycbuffs (not
me) knowledge how the pointers and stuff work with inn (also, not me)
and can do it in C so it's fast (definitely not me) :)






-- 
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23

Technical Details
Message-ID: <20251223230409.1cb9a5e0@wibble.sysadmininc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.endofthelinebbs.com!.POSTED.47.186.32.40!not-for-mail
References: <800dd3c3-950c-4d38-9811-3ef37c501e54-aw@news.chmurka.net> <10i8gpk$1s1ci$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!newsfeed.endofthelinebbs.com!.POSTED.47.186.32.40!not-for-mail
From: Nigel Reed <sysop@endofthelinebbs.com>
Newsgroups: news.software.nntp
Subject: Re: inn: shrinking a cycbuff while keeping articles
Date: Tue, 23 Dec 2025 23:04:09 -0600
Organization: End Of The Line BBS
Sender: nelgin@47.186.32.40
Message-ID: <20251223230409.1cb9a5e0@wibble.sysadmininc.com>
References: <800dd3c3-950c-4d38-9811-3ef37c501e54-aw@news.chmurka.net>
	<10i8gpk$1s1ci$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: newsfeed.endofthelinebbs.com; posting-host="47.186.32.40";
	logging-data="1513548"; mail-complaints-to="abuse@endofthelinebbs.com"
X-Newsreader: Claws Mail 4.3.1git150 (GTK 3.24.41; x86_64-pc-linux-gnu)