Commit graph

116 commits

Author SHA1 Message Date
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
c7206a2eaf Update README, TODO and copyright dates.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:13 +02:00
799eddab5b Update ChangeLog.
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
713db80545 Add HostStats table to install script.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:12 +02:00
9ccb915d77 First version of HostStats.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-11 13:44:12 +02:00
73a2d70f16 Add ParseHeaders() to library.
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
a31e86444a Bump version.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-10 14:13:02 +02:00
4cdb771866 Release 0.2.0
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-10 14:09:08 +02:00
bcd668780e Update TODO.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-10 14:08:49 +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
992d678460 Add changes since last release to Changelog.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2025-05-10 13:53:10 +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
09b45fc369 Update doc/README
Signed-off-by: Thomas Hochstein <thh@thh.name>
2024-05-27 00:55:55 +02:00
ee29be18c8 Update TODO from bugs.th-h.de
Signed-off-by: Thomas Hochstein <thh@thh.name>
2024-05-27 00:15:34 +02:00
cd6f153a9e Add README.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2024-05-26 00:08:34 +02:00
b5ef572664 Accept an upper/lower boundary of 0 (zero).
The code checks if a boundary is set by looking
for a TRUE value, but 0 is FALSE. It has to check
whether the variable is set, i.e. defined(),
instead.

Fixes #56.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-01-01 21:37:43 +01:00
91c674c4fe Merge branch 'thh-small-changes' into next
* thh-small-changes:
  Fix displayed path in install.
  Update INSTALL documentation.
  Fix documentation relating to conffile location.
  Fix --conffile in POD.
  Bump version numbers.
  Fix forgotten dates.
  Fix ea91003a99.
2018-01-01 16:58:25 +01:00
fd0717a15c Fix displayed path in install.
install.pl will display a sample newsfeeds entry.
Adapt the path to the changes in
2ad99c20bc.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 11:45:33 +02:00
b3b170c357 Update INSTALL documentation.
Configuration files now reside in etc/.

This was an oversight from commit
2ad99c20bc.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-04 11:45:31 +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
7624accb6e Merge branch 'thh-small-changes' into next
* thh-small-changes:
  Small comment fixes.
  --sums is not compatible with --checkgroups.
2013-09-03 22:25:13 +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
1af57a5390 Merge branch 'thh-restructure' into next
* thh-restructure:
  Make configuration file configurable.
  Fix some whitespace.
  Redo directory structure.
2013-09-03 14:55:42 +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
dfc2b81c37 Fix some whitespace.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-03 10:01:18 +02:00
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
07c0b2589a Release 0.01
Update TODO list.
Update version numbers, ChangeLog, bump copyright
dates.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-02 13:14:33 +02:00
3d2fd51dd0 Merge branch 'next'
* next: (26 commits)
  Some documentation fixes and enhancments.
  Improve INSTALL documentation.
  README: Update copyright notice.
  README: improve phrasing.
  Change handling of warnings.
  Improve output padding.
  Check for invalid newsgroup names.
  Add some basic validation to config parser.
  Create better newsgroup lists for SQL clause.
  Fix config path detection for install.pl.
  Get empty 'virtual' hierarchies working.
  Add some TODO entries.
  Add database creation to installer.
  Handle undefined previous version when installing.
  Refactor database initialisation in feedlog.pl.
  Add empty 'virtual' .ALL hierarchies as needed.
  Change interpretation of --checkgroups to template
  Be more fault-tolerant when reading checkgroups.
  Remove call to &Bleat where not appropriate.
  Allow more characters in TLH definitions.
  ...
2013-09-02 13:08:39 +02:00
25b25735dd Merge branch 'language' into next
* language:
  Some documentation fixes and enhancments.
  Improve INSTALL documentation.
  README: Update copyright notice.
  README: improve phrasing.
2013-09-02 13:00:33 +02:00
a036e9da62 Merge branch 'thh-bug13' into next
* thh-bug13:
  Add some basic validation to config parser.
2013-09-02 13:00:23 +02:00
38fa44f89b Merge branch 'thh-bug53' into next
* thh-bug53:
  Improve output padding.
2013-09-02 13:00:05 +02:00
7c83a673e6 Merge branch 'thh-bug37' into next
* thh-bug37:
  Create better newsgroup lists for SQL clause.
2013-09-02 12:59:57 +02:00
5cfcb1c061 Merge branch 'thh-checkinput' into next
* thh-checkinput:
  Check for invalid newsgroup names.
2013-09-02 12:59:45 +02:00
439c85a280 Merge branch 'thh-warnings' into next
* thh-warnings:
  Change handling of warnings.
2013-09-02 12:59:35 +02:00
95d9fe2cfd Some documentation fixes and enhancments.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2013-09-02 12:37:13 +02:00