🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91445

Re: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk)

#91445
From: Russ Allbery
Date: Wed, 17 Jan 2024 02:50
57 lines
3642 bytes
John Goerzen <jgoerzen@complete.org> writes:

> In reading some more docs, I have a clue, but it is not an answer.

> The expireover manpage documents these options:

>        -e  Remove articles from the news spool and all overview databases
>            as soon as they expire out of any newsgroup to which they are
>            posted, rather than retain them until they expire out of all
>            newsgroups.  -e and -k cannot be used at the same time.  This
>            flag is ignored if groupbaseexpiry is false.

>        -k  Retain all overview information for an article, as well as the
>            article itself, until it expires out of all newsgroups to
>            which it was posted.  This can cause articles to stick around
>            in a newsgroup for longer than the expire.ctl rules indicate,
>            when they're crossposted.  -e and -k cannot be used at the
>            same time.  This flag is ignored if groupbaseexpiry is false.

> It doesn't state which is the default.

I believe the default is neither of those: the overview information is
removed as the article expires from each group, but the article itself is
retained until it has expired from all groups.

Crossposting was my first guess about what behavior you were seeing, but
then I decided it couldn't be that since you had thousands of unexpired
messages.  But now that you say that you keep everything forever except
certain groups, it all makes sense.  Your example group, alt.atheism, is
notorious for getting tons of crossposted troll posts from tons of other
groups, so much of its traffic is crossposted.

> - Since a tradspool article is hardlinked into every newsgroup it is
>   posted to, how does -e even know where to remove it from?  Same for
>   ctlinnd cancel and such.  It would have to rm/unlink it from multiple
>   places if crossposted.

It uses the Xref header of the article to find all the groups to which it
was posted.  It has to retrieve that anyway to know what expiration rules
to apply.  This is why although the standard doesn't require it, INN
requires the Xref header be present in the overview database.

> - Part of the reason I picked tradspool was to have more fine-grained
>   control over expiry.  I had thought that it would simply unlink a
>   crossposted article from any group whose rules would expire it.  It
>   sounds like it's all-or-nothing, and perhaps -k is the default.

I forget why we don't do that.  I think it's because the links aren't
always hard links; sometimes they're symlinks and in that case you can't
just delete the article out of each group independently?  But I'm not
really sure.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <8734uw4qs3.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org>

Show Full Headers
Complete Article Headers
Message-ID: <8734uw4qs3.fsf@hope.eyrie.org>
Subject: Re: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk)
Date: Tue, 16 Jan 2024 18:50:20 -0800
From: Russ Allbery <eagle@eyrie.org>
References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:vfEzTma4UVTAwCSPAMduZCeeFcM=