scanspool - Perform a sanity scan over all articles in news spool
] [-a active-file
is a Perl script for use with a tradspool
It will scan the active
file as well as all articles in the spool and
report on the errors it encounters. As this may take a while, using the
switch is recommended to see how far the program has progressed.
scans the active
file, noting problems such as:
- malformed lines;
- newsgroups aliased to a non-existent newsgroup;
- newsgroups aliased to a newsgroup that is also
Then it will examine all articles under your news spool directory, complaining
about articles that:
- have a basename that starts with a leading 0;
- have a basename that is out of range according to the
- do not contain a Newsgroups: header line;
- are all header and no text;
- are in a directory for which there is no newsgroup in the
- are in a newsgroup to which they do not belong.
understands aliased newsgroups. Thus, if an article is posted
to foo.old.name that is aliased to foo.bar, it will be expected to be found
under foo.bar and not foo.old.name.
Articles posted to a newsgroup of status "j" or "x" (the
fourth field of the active
file) will be expected to show up under the
assumes that the path of a valid newsgroup's directory from the
root of the spool tree will not contain any "." character. Thus,
directories such as out.going
will not be searched. This program also assumes that
article basenames contain only decimal digits. Last, files under the top level
are not scanned.
- -a active-file
- The active file to use; pathdb/active is the
- Only check article filenames. scanspool will
therefore not actually scan the Newsgroups: header field of the
- Don't throttle innd while scanning.
- -s spool-dir
- The root of the spool tree; patharticles is the
- Setting this flag enables a verbose mode. scanspool
will then print which newsgroup is currently worked upon. It will list all
the articles found in non- active directories (that is to say
articles sorted into groups no longer present in the active file),
rather than just printing the group once.
The output of scanspool
will start with one of the following forms:
- "FATAL:" (to stderr)
- Fatal or internal error.
- "WARN:" (to stderr)
- active or article format problem, newsgroup alias
problem, find(1) error, article open error.
- "path/123:" (to stdout)
- Issues such as:
- basename starts with 0;
- article number out of range;
- article in the wrong directory;
- article in a directory not related to an active
- "\t ..." (to stdout)
- Verbose messages start with a tab.
is unable to detect and properly deal with spool formats other
than tradspool. However, if the files that store your articles are named other
than just all-digits, they will simply be skipped (and your active
only considers the first line of the Newsgroups: header field.
Continuation lines are not taken into account.
was written by Landon Curt Noll (chongo was here /\../\).
This manual page was written by Florian Schlichting, largely based on comments
in the script.
$Id: scanspool.pod 9301 2011-08-04 21:09:11Z iulius $