d02ae5e2ff
Fix version queries.
...
Add month to WHERE clause, use bind values.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 09:43:32 +02:00
07e4543717
Fix typos.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 01:11:23 +02:00
0102b72971
Remove whitespace from client and version.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 01:09:51 +02:00
ed3fb3cda0
Truncate overlong clients or versions.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 01:09:27 +02:00
462f28505d
DBClnts: set version length to 50.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:36:29 +02:00
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
39e845d552
Add ClientStats to postingstats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:02:44 +02:00
66a175c7f8
Add clientstats (for clients).
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:02:44 +02:00
963f07432c
Move cliservstats to hoststats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:02:44 +02:00
a553b374ce
Add ClientStats to gatherstats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-31 00:02:44 +02:00
d194ef754f
Move lc() to counting.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 19:04:16 +02:00
c985e29b7e
Improve documentation for config file.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:57:50 +02:00
f78d4c2158
Refactor getting raw headers.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:57:50 +02:00
995173456b
Refactor and fix TLH check.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:30:35 +02:00
3447cdabff
Reformat Conf(TLH) for GroupStats only.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 18:30:35 +02:00
671ae67be0
Fix typo.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-29 17:11:49 +02:00
6122d1a49d
Fix POD.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-18 17:20:36 +02:00
8c9d450d47
Add tinews.pl and some shell scripts to /contrib.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-18 13:56:28 +02:00
9b6bf3e194
Move database creation to bin/dbcreate.pl.
...
Remove install/*
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-18 13:33:49 +02:00
6afa9a62b9
Fix call to GetMaxLength().
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-18 13:22:07 +02:00
7169e2636f
Add more hosts and special cases.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-16 21:00:13 +02:00
0ee389fc42
Fix comments and code in clisverstats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-16 21:00:08 +02:00
28157570f1
Change --comments behaviour.
...
--comments defaulted to true, but --nocomments was
enforced if --filetemplate was set.
Remove enforcement, but default to --nocomments
if --filetemplate is set. Default behaviour is
unchanged, but it's now possible to have
comments in files.
Change handling of captions accordingly (must
be sent to output handle now).
Update POD.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 19:57:50 +02:00
29e9784048
Refactor postingstats.
...
- Make all text configurable (i18n).
- Generalize to make it usable for HostStats.
- Fallback to last month if no month is given.
- Add option handling, import VERSION, add POD.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 18:21:15 +02:00
83d4da5e30
Move postingstats to /bin.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:28:20 +02:00
c6346470f9
Add sums per month to HostStats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:27:33 +02:00
ea493f3da0
gatherstats: implement --hierarchy check.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:27:33 +02:00
e40e96a1e2
Add more hosts and special cases.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 17:27:33 +02:00
f7485561dd
Fix Path: header parsing.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
f6b7a1d000
Add higher debug level to gatherstats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
c1e6b0161e
Update gatherstats documentation.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
f5aa649810
Add known hosts.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
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
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
57af475b80
First version of cliservstats.pl
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
867498fdc8
Refactor SQL query generators.
...
Accept other column names than newsgroup.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
9ccb915d77
First version of HostStats.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:12 +02:00
0a0e615ede
Factor Groupstats() out from gatherstats main.
...
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:12 +02:00
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
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
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
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
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
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
22d3d70a72
Fix ea91003a99.
...
Commit ea91003a99
was broken and did not check for undefined
variables.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 10:53:34 +02:00
599fefbf6a
Merge branch 'thh-bug51' into next
...
* thh-bug51:
One more default sorting order ("grouping").
2013-09-03 22:25:23 +02:00
8dc6823e98
Small comment fixes.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 17:12:09 +02:00
17ef44085f
--sums is not compatible with --checkgroups.
...
'Virtual' .ALL groups will never be present in
a checkgroups file, and we can't use them anyway
as they would contain postings from groups that
are filtered out by --checkgroups.
Add a warning, put a note in the documentation.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 15:10:07 +02:00
ea91003a99
One more default sorting order ("grouping").
...
If --group-by is not set, output will be grouped
by month by default (as long as --boundary is
not set to 'level' or 'average', where grouping
by newsgroup is default).
Now we default to 'newsgroup' if just one newsgroup
is requested by --newsgroups, but more than one
month by --month.
Both defaults can be overridden.
But forced --group-by=month for --report type
'average' or 'sum' in front so defaults are
not checked.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 14:56:17 +02:00
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