DOCHECKGROUPS(8)
π DOCHECKGROUPS(8) β like, the checkgroups whisperer
okay bestie, welcome to docheckgroups, one of the InterNetNews girlies β¨ This is the manual page for it, and I'm gonna walk you through every single thing it does, no skips, no cap.
πΈ SYNOPSIS πΈ
docheckgroups [-u] [include-pattern [exclude-pattern]]
that's the whole vibe check right there. two optional positional args, one flag. slay.
π¦ DESCRIPTION π¦
so docheckgroups is usually run by controlchan because it's the one who processes checkgroups control messages. main character energy honestly.
what it does: it reads a list of newsgroups (plus their descriptions) on its standard input. that list needs to be formatted like the newsgroups(5) file β meaning each line is the newsgroup name, then one or more tabulations, then the description. periodt.
now here's where the filtering comes in: docheckgroups will only check the presence of newsgroups that match include-pattern (that's an egrep expression, like "^comp\..*$" for newsgroups starting with "comp.") and which do not match exclude-pattern (also an egrep expression) β except for newsgroups mentioned in the pathetc/localgroups file. π«Ά
that pathetc/localgroups file? also formatted like the newsgroups(5) file, and it should contain local newsgroups which would otherwise be mentioned for removal. there's no need to put local newsgroups of hierarchies for which no checkgroups control messages are sent, unless you manually process checkgroups texts for them. and heads up: lines beginning with a hash sign ("#") are not taken into account in this file. π
all the newsgroups and descriptions mentioned in pathetc/localgroups are appended to the processed checkgroups. cute, right?
if exclude-pattern is given, include-pattern should also be given before it (you can use an empty string ("") if you want to include all the newsgroups). be that as it may, docheckgroups will only check newsgroups in the top-level hierarchies which are present in the checkgroups. iykyk.
then β and this is the fun part β docheckgroups checks the active and newsgroups files and displays on its standard output a list of changes, if any. it does not change anything by default. it only points out what should be changed:
- Newsgroups which should be removed (they are in the
activefile but not in the checkgroups) and the relevantctlinndcommands to achieve that ποΈ - Newsgroups which should be added (they are not in the
activefile but in the checkgroups) and the relevantctlinndcommands to achieve that β¨ - Newsgroups which are incorrectly marked as moderated or unmoderated (they are both in the
activefile and the checkgroups but their status differs) and the relevantctlinndcommands to fix that π© - Descriptions which should be removed (they are in the
newsgroupsfile but not in the checkgroups) - Descriptions which should be added (they are not in the
newsgroupsfile but in the checkgroups)
the output of docheckgroups can be fed into mod-active (it will pause the news server, update the active file accordingly, reload it and resume the work of the news server) or into the shell (commands for ctlinnd will be processed one by one). and listen β in order to update the newsgroups file, the -u flag must be given to docheckgroups. don't forget it, bestie. π
when processing a checkgroups manually, it is always advisable to first check the raw output ofdocheckgroups. then, if everything looks fine, usemod-activeand the-uflag. like, look before you leap, fr fr.
β¨ OPTIONS β¨
-uβ if this flag is given,docheckgroupswill update thenewsgroupsfile: it removes obsolete descriptions and adds new ones. it also sorts this file alphabetically and improves its general format (seenewsgroups(5)for an explanation of the preferred number of tabulations). the glow-up option π
π EXAMPLES π
so as to better understand how docheckgroups works, here are examples with the following active file:
a.first 0000000000 0000000001 y
a.second.announce 0000000000 0000000001 y
a.second.group 0000000000 0000000001 y
b.additional 0000000000 0000000001 y
b.third 0000000000 0000000001 y
c.fourth 0000000000 0000000001 y
the following newsgroups file (using tabulations):
a.first First group.
a.second.announce Announce group.
a.second.group Second group.
b.third Third group.
c.fourth Fourth group.
and the following localgroups file (using tabulations):
b.additional A local newsgroup I want to keep.
the checkgroups we process is in the file test which contains:
a.first First group.
a.second.announce Announce group. (Moderated)
a.second.group Second group.
b.third Third group.
c.fourth Fourth group.
if we run:
cat test | docheckgroups
docheckgroups will output that a.second.announce is incorrectly marked as unmoderated and that its description is obsolete. besides, two new descriptions will be mentioned for addition (the new one for a.second.announce and the missing description for b.additional β it should indeed be in the newsgroups file and not only in localgroups). π so much tea.
now that we have checked the output of docheckgroups and that we agree with the changes, we run it with the -u flag to update the newsgroups file and we redirect the standard output to mod-active to update the active file:
cat test | docheckgroups -u | mod-active
that's all! π
now, suppose we run:
cat test | docheckgroups "^c\..*$"
nothing is output (indeed, everything is fine for the c.* hierarchy). it would have been similar if the test file had only contained the checkgroups for the c.* hierarchy (docheckgroups would not have checked a.* and b.*, even if they had been in include-pattern).
in order to check both a.* and c.*, you can run:
cat test | docheckgroups "^a\..*$|^c\..*$"
and if you want to check a.* but not a.second.*, you can run:
cat test | docheckgroups "^a\..*$" "^a\.second\..*$"
in our example, docheckgroups will then mention a.second.announce and a.second.group for removal since they are in the active file (the same goes for their descriptions). notwithstanding, if you do want to keep a.second.announce, just add this group to localgroups and docheckgroups will no longer mention it for removal. π«Ά
π§ FILES π§
pathbin/docheckgroupsβ The Shell script itself used to process checkgroups.pathetc/localgroupsβ The list of local newsgroups along with their descriptions.
π HISTORY π
Documentation written by Julien Elie for InterNetNews. π
π SEE ALSO π
active(5), controlchan(8), ctlinnd(8), mod-active(8), newsgroups(5).
and that's the whole page, bestie π this was INN 2.7.4, dated 2022-07-10 β go forth and check those groups, you absolute icon π¦β
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms