-aarticle
The article number or numbers to act on. article is a valid NNTP range, meaning that it can be
either a single article number or a range of article numbers (like "1-5"). Either the start or the
end (or both) of the range may be omitted, in which case they will be set to the first or last
article number in the group. Passing "-" for article is therefore equivalent to not using the -a
option at all.
Only useful in combination with the -o and -O options to dump overview information or with -c to
specify the low and high article numbers when creating a group.
-A Audit the entire overview database for problems. This runs the internal consistency checks built
into the tradindexed overview implementation, checking such things as the validity and reachability
of all group index entries, the format of the individual overview entries, the correspondence of
index entries to overview data, and similar such things. No changes will be made to the database,
but problems will be reported to standard error.
-c Create a new group in the overview database. The group must be specified with -n. The newsgroup
status defaults to "y" but may be set with -f. The low and high article numbers default to 1 and 0
respectively, but may be set with -a. If only one number is given to -a, it is taken as the high
article number.
-F Audit the entire overview database for problems, fixing them as they're detected where possible.
This runs the internal consistency checks built into the tradindexed overview implementation,
checking such things as the validity and reachability of all group index entries, the format of the
individual overview entries, the correspondence of index entries to overview data, and similar such
things. The strategy used when fixing problems is to throw away data that's unrecoverable, so be
warned that using this option may result in inaccessible articles if their overview data has been
corrupted.
To see what would be changed by -F, run tdx-util with -A first.
-fstatus
When creating a newsgroup with -c, set the status of the newly created group to status instead of
"y". Only useful with -c.
-g Dump the index of a particular group. The fields are, in order, the article number, the offset of
the data for that article in the overview data file for that group, the length of the overview data,
the time (in seconds since epoch) when the article arrived on the server, the time (in seconds since
epoch) when the article should expire based on its Expires header field (or 0 if there is no Expires
header field), and the storage API token of the article.
If this option is given, the -n option must also be given to specify the newsgroup on which to act.
-i Dump the master index of the overview database. This contains similar information to the server
active file, such as high and low water marks and moderation status, and is the information that
nnrpd hands out to clients.
The fields are, in order, the newsgroup name, the high water mark, the low water mark, the base
article number (the point at which the group index begins), the count of articles in the group, the
group status, the time (in seconds since epoch) when that newsgroup was deleted or 0 if it hasn't
been, and the inode of the index file for that group.
A particular newsgroup can be specified with the -n option. If -n is not given, the entire master
index will be dumped.
-nnewsgroup
Specify the newsgroup on which to act, required for the -c, -g, -o, -O, and -R options, and optional
for the -i option.
-o Dump the overview information for a newsgroup, in the same format as it would be returned to clients
but with one modification. Appended to the end of each entry will be four additional pieces of data:
the article number according to the index file for that group labelled with "Article:", the storage
API token for that article labelled with "Token:", the arrival date for that article on the server in
RFC 5322 date format labelled with "Arrived:", and the expiration date for that article (from the
Expires header field) in RFC 5322 date format if there is any, labelled with "Expires:".
If this option is given, the -n option must also be given to specify the newsgroup on which to act.
By default, all of the overview information for that newsgroup is dumped, but the -a option may be
given to restrict the dump to the information for a single article or a range of article numbers.
-O Dump the overview information for a newsgroup in the format used by overchan as input. Each line
will start with the storage API token, the arrival timestamp in seconds since epoch, the expires
timestamp in the same format (or 0 if there is no Expires header field), and then the overview data.
If this option is given, the -n option must also be given to specify the newsgroup on which to act.
By default, all of the overview information for that newsgroup is dumped, but the -a option may be
given to restrict the dump to the information for a single article or a range of article numbers.
-ppath
Act on the overview database rooted in path, overriding the overview path specified in inn.conf.
-Rpath
Rebuild the overview for a given group from the articles stored in path. The articles must be in the
form of a traditional spool directory; in other words, each article must be in a separate file and
the name of the file must match the article number of the article.
If this option is given, the -n option must also be given to specify the newsgroup on which to act.