Commit graph

30 commits

Author SHA1 Message Date
Thomas Hochstein ed3fb3cda0 Truncate overlong clients or versions.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 01:09:27 +02:00
Thomas Hochstein 06bcdfb2be gatherstats: Don't die on parsing errors.
Just warn if host or client can't be
identified.

Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:33:28 +02:00
Thomas Hochstein a553b374ce Add ClientStats to gatherstats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:02:44 +02:00
Thomas Hochstein d194ef754f Move lc() to counting.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 19:04:16 +02:00
Thomas Hochstein c985e29b7e Improve documentation for config file.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:57:50 +02:00
Thomas Hochstein f78d4c2158 Refactor getting raw headers.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:57:50 +02:00
Thomas Hochstein 995173456b Refactor and fix TLH check.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:30:35 +02:00
Thomas Hochstein 3447cdabff Reformat Conf(TLH) for GroupStats only.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:30:35 +02:00
Thomas Hochstein 7169e2636f Add more hosts and special cases.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-16 21:00:13 +02:00
Thomas Hochstein c6346470f9 Add sums per month to HostStats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:27:33 +02:00
Thomas Hochstein ea493f3da0 gatherstats: implement --hierarchy check.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:27:33 +02:00
Thomas Hochstein e40e96a1e2 Add more hosts and special cases.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:27:33 +02:00
Thomas Hochstein f7485561dd Fix Path: header parsing.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
Thomas Hochstein f6b7a1d000 Add higher debug level to gatherstats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
Thomas Hochstein c1e6b0161e Update gatherstats documentation.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
Thomas Hochstein f5aa649810 Add known hosts.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
Thomas Hochstein 93b8d564ba Remove parsing of NNTP-Posting-Host.
NNTP-Posting-Host contains the client,
not the server.

Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
Thomas Hochstein c6432dcd44 Add --mid to gatherstats.
Parse just a specific entry defined by Message-ID
and set --test and --debug modes.

Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
Thomas Hochstein 9ccb915d77 First version of HostStats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:12 +02:00
Thomas Hochstein 0a0e615ede Factor Groupstats() out from gatherstats main.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:12 +02:00
Thomas Hochstein 1d3c8f9529 Change to semantic versioning.
Remove individual script versions as opposed to
package version.

Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-10 14:08:19 +02:00
Thomas Hochstein ea59ab945e Update POD documentation (URLs) and author's address.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-10 13:53:10 +02:00
Thomas Hochstein 44c197097b Fix documentation relating to conffile location.
CONFIGURATION section talks about newsstats.conf being
in the same directory which is not true any more since
2ad99c20bc.

It also didn't mention the --conffile option which was
added in 23ab67a099.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 11:43:13 +02:00
Thomas Hochstein e39d4207a6 Fix --conffile in POD.
Change '--conffile' to 'B<--conffile>'.
The wrong format was added to documentation
in commit
23ab67a099.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 11:30:28 +02:00
Thomas Hochstein 24d2011f32 Bump version numbers.
All scripts - and the package - have been
restructured in commit
2ad99c20bc,
but version numbers didn't change accordingly.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 11:29:50 +02:00
Thomas Hochstein 2871792120 Fix forgotten dates.
Some dates were not bumped when releasing v 0.01
in 07c0b2589a.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 11:29:21 +02:00
Thomas Hochstein 8dc6823e98 Small comment fixes.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 17:12:09 +02:00
Thomas Hochstein 23ab67a099 Make configuration file configurable.
Add --conffile option to all scripts to
overrride standard config file location
etc/newsstats.conf.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 10:01:20 +02:00
Thomas Hochstein dfc2b81c37 Fix some whitespace.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 10:01:18 +02:00
Thomas Hochstein 2ad99c20bc Redo directory structure.
* Move all scripts to /bin
* Move configuration to /etc
* Move NewsStats.pm to /lib
* Add new path to NewsStats.pm to all scripts
* Set $HomePath to top level directory
* Move setting of config file name to ReadConf()

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 10:01:16 +02:00
Renamed from gatherstats.pl (Browse further)