Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

statnews(1) [debian man page]

STATNEWS(1)						      Debian GNU/Linux Manual						       STATNEWS(1)

NAME
statnews - generate some useful statistics out of a newsgroup SYNOPSIS
statnews [OPTIONS] NEWSGROUP DESCRIPTION
The statnews command get some useful statistics out of a newsgroup. It displays things like how many articles each author posted, how many characters was written, how many lines were quoted, how many articles belong to each thread, the number of messages/characters per day, the average message length, and so on. OPTIONS
--capitalize(*) Whether to capitalize the name of both the sender and the receiver of each message (default is "--capitalize": yes). This option is useful to collect "AUTHOR" together with "author", "Author", and "AuThor". --dotted(*) Whether to translate "." to "/" in NEWSGROUP (default is "--nodotted": does translate). This option may be useful if your system stores each newsgroup in a dedicate directory (e.g., news.useless.group) instead that by hierarchy (e.g., news/useless/group), or if your system has a news archive stored this way. --from=DATE Set the date statistics start from (DATE format is "dd/mm/yyyy", GMT). --help Display the help summary. --spooldir=SPOOLDIR Search NEWSGROUP in SPOOLDIR (default is /var/spool/news/articles/). --to=DATE Set the date statistics end by (DATE format is "dd/mm/yyyy", GMT). --width=WIDTH Set the terminal width to WIDTH columns (default is 80, with a minimum of 70). Options may be conveniently abbreviated and prefixed by "-" instead of "--"; the "=" may be omitted or substituted with one or more blanks. Options listed with (*) may be negated by adding the prefix "no" in front of them (e.g., "--dotted" => "--nodotted"). RETURN VALUE
The statnews command returns 0 on success and a positive integer on errors. ENVIRONMENT
The environment variable STATNEWS can hold a set of default options for statnews. These options are interpreted first by the program and can be overridden by explicit command line parameters. For example: sh: "STATNEWS="--nocapital --width=132"; export STATNEWS" csh: "setenv STATNEWS "--nocapital --width=132"" FILES
The default spool directory is /var/spool/news/articles/. SEE ALSO
rn(1), readnews(1). BUGS
There are no known bugs. UNRESTRICTIONS
This program is copylefted. Refer to the GNU General Public License for conditions of use. AUTHOR
This program has been written and is actively maintained by Davide Giovanni Maria Salvetti <salve@debian.org>. HISTORY
This program was originally aimed for use with FidoNet style echo areas under Debian GNU/Linux. It can be successfully used with Usenet newsgroups as well. More precisely, it can be used with every message base that stores one message per file in some directory in traditional mbox format. Debian Project 2011-12-25 STATNEWS(1)

Check Out this Related Man Page

SCANSPOOL(8)						    InterNetNews Documentation						      SCANSPOOL(8)

NAME
scanspool - Perform a sanity scan over all articles in news spool SYNOPSIS
scanspool [-cnv] [-a active-file] [-s spool-dir] DESCRIPTION
scanspool is a Perl script for use with a tradspool article spool. 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 -v switch is recommended to see how far the program has progressed. First, scanspool scans the active file, noting problems such as: o malformed lines; o newsgroups aliased to a non-existent newsgroup; o newsgroups aliased to a newsgroup that is also aliased. Then it will examine all articles under your news spool directory, complaining about articles that: o have a basename that starts with a leading 0; o have a basename that is out of range according to the active file; o do not contain a Newsgroups: header line; o are all header and no text; o are in a directory for which there is no newsgroup in the active file; o are in a newsgroup to which they do not belong. scanspool 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 junk group. scanspool 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, tmp.dir, in.coming and news.archive will not be searched. This program also assumes that article basenames contain only decimal digits. Last, files under the top level directory lost+found are not scanned. OPTIONS
-a active-file The active file to use; pathdb/active is the default. -c Only check article filenames. scanspool will therefore not actually scan the Newsgroups: header field of the articles. -n Don't throttle innd while scanning. -s spool-dir The root of the spool tree; patharticles is the default. -v 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. DIAGNOSTICS
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: o basename starts with 0; o article number out of range; o article in the wrong directory; o article in a directory not related to an active non-aliased newsgroup. " ..." (to stdout) Verbose messages start with a tab. BUGS
scanspool 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 is still checked). scanspool only considers the first line of the Newsgroups: header field. Continuation lines are not taken into account. HISTORY
scanspool 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 9302 2011-08-04 21:10:17Z iulius $ SEE ALSO
active(5). INN 2.5.3 2011-08-22 SCANSPOOL(8)
Man Page