Article View: news.software.nntp
Article #91453Re: tradspool and crosspost expiry
From: Julien ÉLIE
Date: Fri, 19 Jan 2024 20:00
Date: Fri, 19 Jan 2024 20:00
112 lines
6584 bytes
6584 bytes
Hi John, Russ, >> 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. Indeed, and this is documented at the beginning of the expireover(8) manual page: "When groupbaseexpiry is set, the default behavior of expireover is to remove the article from the spool once it expires out of all of the newsgroups to which it was crossposted. The article is, however, removed from the overview database of each newsgroup as soon as it expires out of that individual newsgroup." >> - 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. When the creation of a hard link fails, tradspool falls back to create a symlink, and if it also does not work, no link is created at all and an error is logged. That's certainly why files aren't directly removed, as they can be symlink on rare occasions. >> Can one move groups between classes if the storage method is the >> same? (I note the warning "arbitrary but permanent" and am not >> sure how it might apply here.) Yes, they can be moved between classes, and even of different methods. The warning just says that if, at the time of the arrival of an article to news.software.nntp, its storage method is tradspool and has class number 3, then it will be stored in tradspool and be assigned a storage token @0503...@ which will permit retrieving it in tradspool. "05" means tradspool, and "03" is the class number (used for expiration per storage classes when groupbaseexpiry is false). If you then parameterize news.software.nntp to be stored in timehash and class number 7, then the next article in that newsgroup will have a storage token of the form @0207...@ where "02" means timehash, and "07" is the class number. The previous article in tradspool will naturally still be retrievable. What INN needs to know is in the storage token. And in case you remove the storage.conf entry for class number 3, the articles will still be here and retrievable. Later, if you reintroduce a new storage.conf entry for class number 3 on a different set of groups and maybe a different wish of retention, here comes the warning "arbitrary but permanent" as your old articles stored in class number 3 will share the same class number as the new articles. >> I've been wondering of I could use different storage classes to >> solve this problem. In case there's a bug in how crossposted articles are marked by expireover as to be expired from the news spool, using different storage classes *and* setting groupbaseexpiry to *false* may improve the expiration of such articles. (Naturally, the possible bug in expireover should be fixed but it should first be found...) The expiration process is driven by expireover when groupbaseexpiry is true. The contents of the overview database is used to find articles to expire, and then are removed from the overview and the news spool if needed according to the rules in expire.ctl. The expire program purges the history file afterwards. When groupbaseexpiry is false, the expire program drives the expiration process. The articles are removed from the history file and the news spool according to their storage class (and expire.ctl rules). The expireover program purges the overview database afterwards. So if you have several storage classes (all in tradspool if you wish, one for 5 days of retention, another for 7 days, 10 days, 30 days, etc.), I am under the impression that the expiration would work better. There's no longer any rule about crossposts. Just a thought I would like to share anyway, I've not tested. -- Julien ÉLIE « – Tu parles ? – Tu parles ! » (Astérix)
Technical Details
Message-ID:
<uoekcd$3fkf7$1@news.trigofacile.com>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-mailReferences:
<slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> <8734uw4qs3.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <uoekcd$3fkf7$1@news.trigofacile.com> Subject: Re: tradspool and crosspost expiry Date: Fri, 19 Jan 2024 21:00:13 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> <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 Newsgroups: news.software.nntp Organization: Groupes francophones par TrigoFACILE Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 19 Jan 2024 20:00:13 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080adc110029b5328be2eee065.ipv6.abo.wanadoo.fr:2a01:cb08:adc:1100:29b5:328b:e2ee:e065"; logging-data="3658215"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:MK1sZKsJlV4SETfBSbiwOMD7QPw= sha256:+XNPI9Yz6fX0QFQX6x2QFG87UVvbUmt8s6cHKeg+d2o= sha1:04WqMS5QZYuQmpdHK2Yc8/RHStk= sha256:TFONuEXkPv7BqeE271QTs1oOFxnGuiqtTfWLJzA+64g= In-Reply-To: <8734uw4qs3.fsf@hope.eyrie.org>