PRUNEHISTORY(8)
π PRUNEHISTORY β the InterNetNews docs, bestie edition β¨
okay so real quick: this is a page from the InterNetNews Documentation set, and it's all about prunehistory, the little tool that removes tokens from a Usenet history file. yes it's niche. yes it's iconic. let's go π«Ά
πΈ NAME πΈ
prunehistory β remove tokens from the Usenet history file, no cap π
β¨ SYNOPSIS β¨
prunehistory [-p] [-f filename]
π¦ DESCRIPTION π¦
So here's the vibe: prunehistory edits a text file that's in history(5) format and "removes" a bunch of tokens from it. and when I say "removes" I mean it literally overwrites them with spaces β which is the whole slay, because it means the size and position of every entry that comes after them stays exactly the same π
the effect is lowkey similar to expiring the article: it's still mentioned in the history database, but it cannot be retrieved. it's giving "on the list but not invited" ππ
prunehistory reads from standard input, and it treats that input as a set of lines:
- blank lines? ignored π
- lines starting with a number sign (
#)? also ignored, those are comments bestie - every other line should be a message-ID followed by zero or more other fields (and yeah, those extra fields get ignored, they're just along for the ride)
that message-ID gets used as the dbz key to grab an offset into the text file. and since innd only ever appends to the text file, prunehistory doesn't need any interaction with it at all β no coordinating, no drama, no group chat needed π
π OPTIONS π
-pβ normallyprunehistorywill complain about lines that don't follow the correct format. but if you pass-p, it silently prints any invalid lines on its standard output instead. (blank lines and comment lines get passed through too, so nothing's lost β¨)-ffilenameβ the default name of the history file ispathdb/history; to specify a different name, use the-fflag. simple as that π
π HISTORY π
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Converted to POD by Julien Elie. a whole origin story, honestly π
π SEE ALSO π
history(5), innd(8), libinn_dbz(3) β go read those too, they're fr fr worth it π
tiny reminder bestie: this thing blanks out tokens in place, so don't go expecting the file to shrink or anything. spaces are the moment. π
and that's the whole page!! π§ from the INN 2.7.4 era, dated 2022-07-10 β mwah, slay, periodt π π
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms