SYNOPSIS

statnews [\s-1OPTIONS\s0] \s-1NEWSGROUP\s0

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 \*(C`--capitalize\*(C': yes). This option is useful to collect "AUTHOR" together with "author", "Author", and "AuThor".

--dotted(*)

Whether to translate "." to "/" in \s-1NEWSGROUP\s0 (default is \*(C`--nodotted\*(C': 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=\s-1DATE\s0

Set the date statistics start from (\s-1DATE\s0 format is \*(C`dd/mm/yyyy\*(C', \s-1GMT\s0).

--help

Display the help summary.

--spooldir=\s-1SPOOLDIR\s0

Search \s-1NEWSGROUP\s0 in \s-1SPOOLDIR\s0 (default is /var/spool/news/articles/).

--to=\s-1DATE\s0

Set the date statistics end by (\s-1DATE\s0 format is \*(C`dd/mm/yyyy\*(C', \s-1GMT\s0).

--width=\s-1WIDTH\s0

Set the terminal width to \s-1WIDTH\s0 columns (default is 80, with a minimum of 70).

Options may be conveniently abbreviated and prefixed by \*(L"-\*(R" instead of \*(L"--\*(R"; the \*(L"=\*(R" 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., \*(C`--dotted\*(C' => \*(C`--nodotted\*(C').

RETURN VALUE

The statnews command returns 0 on success and a positive integer on errors.

ENVIRONMENT

The environment variable \s-1STATNEWS\s0 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:

\*(C`STATNEWS="--nocapital --width=132"; export STATNEWS\*(C'

csh:

\*(C`setenv STATNEWS "--nocapital --width=132"\*(C'

FILES

The default spool directory is /var/spool/news/articles/.

RELATED TO statnews…

rn\|(1), readnews\|(1).

BUGS

There are no known bugs.

UNRESTRICTIONS

This program is copylefted. Refer to the \s-1GNU\s0 General Public License for conditions of use.

AUTHOR

This program has been written and is actively maintained by Davide Giovanni Maria Salvetti <[email protected]>.

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.