.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PRUNEHISTORY 8" .TH PRUNEHISTORY 8 2024-02-12 "INN 2.7.2" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME prunehistory \- Remove tokens from Usenet history file .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBprunehistory\fR [\fB\-p\fR] [\fB\-f\fR \fIfilename\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBprunehistory\fR modifies a history(5)\-format text file to "remove" a set of tokens from it. The tokens are removed by overwriting them with spaces, so that the size and position of any following entries does not change. This has an effect similar to expiring the article, in that it is still mentioned in the history database but cannot be retrieved. .PP \&\fBprunehistory\fR reads the standard input. The input is taken as a set of lines. Blank lines and lines starting with a number sign (\f(CW\*(C`#\*(C'\fR) are ignored. All other lines should consist of a message-ID followed by zero or more other fields (which are ignored). The message-ID is used as the \fIdbz\fR key to get an offset into the text file. Since \fBinnd\fR only appends to the text file, \&\fBprunehistory\fR does not need to have any interaction with it. .SH OPTIONS .IX Header "OPTIONS" .IP \fB\-p\fR 4 .IX Item "-p" \&\fBprunehistory\fR will normally complain about lines that do not follow the correct format. If the \fB\-p\fR flag is used, then the program will silently print any invalid lines on its standard output. (Blank lines and comment lines are also passed through.) .IP "\fB\-f\fR \fIfilename\fR" 4 .IX Item "-f filename" The default name of the \fIhistory\fR file is \fIpathdb\fR/history; to specify a different name, use the \fB\-f\fR flag. .SH HISTORY .IX Header "HISTORY" Written by Rich $alz for InterNetNews. Converted to POD by Julien Elie. .SH "SEE ALSO" .IX Header "SEE ALSO" history(5), innd(8), libinn_dbz(3).