🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83724

Re: docheckgroups et al

#83724
From: John F. Morse
Date: Mon, 27 Dec 2010 20:42
187 lines
7727 bytes
Hi Julien

> ** And first of all, merry Christmas to all the readers of the
> newsgroup. **
>   


I'll echo that, although a couple of days late!


>> Where is this control.checkgroups file?
>>     
>
> http://usenet.trigofacile.com/hierarchies/index.py?see=COMP,HUMANITIES,MISC,NEWS,REC,SCI,SOC,TALK&only=checkgroups
>   


That looks like what I call the "newsgroups" file, both in /var/lib/news 
and at ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups


>> If it is the control.checkgroups group on my servers, I can't access
>> it because it is in CNFS. I don't have a Message-ID to use in
>> grephistory to obtain the token. Without that, I don't know how to
>> read any article in the group.
>>     
>
> You could open control.checkgroups in your newsreader and manually
> search for the control article.
> The message-ID of the last one (December, 15th) is:
> <cmsg-20101215160002$030e@isc.org>
>   


That would be impossible with readers.conf containing:

access "authenticated" {
        users: "*"
        newsgroups: "*,!junk,!control,!control.*"
}


However I can read that particular M-ID with "grephistory 
'<cmsg-20101215160002$030e@isc.org>' | sm | less"

I see it is just the "newsgroups" listing for the Big-8 hierarchies 
involved with the checkgroups.


>> I can't find any archived checkgroups files at the ISC site. Are they
>>  (still) there?
>>     
>
> For checkgroups, have a look at:
> ftp://ftp.isc.org/pub/usenet/control/other.ctl
>   


That is handy to have for reference. Thanks.

I also use: ftp://ftp.isc.org/pub/usenet/CONFIG/LOGS/


>> As a side note, I also can no longer locate the history (charter 
>> messages) which created the groups. Did the ISC remove this?
>>     
>
> I do not know.  Do you speak about newgroup control messages?
> Or monthly charters?
>   


Well, I was trying to find what I could not name. ;-)

This might be it: ftp://ftp.isc.org/pub/usenet/control

N.B. for Russ (or whomever), the following has an XML Parsing Error:

ftp://ftp.isc.org/pub/usenet/control-old


>> Even worse, the -A option in actsync will not authenticate. I only
>> get one local group ("info") which doesn't require passwd
>> authentication. Perhaps my syntax is not correct, but I've tried the
>> command various ways. I'm not prompted for authentication, and
>> supplying a username:password combination somewhere in the command
>> causes the command to fail entirely.
>>     
>
> Having looked at the source code, actsync uses the file named
> passwd.nntp if you ask for authentication with the -A flag.
> Be sure to keep this file not readable by everyone (but only
> the news user for instance).
>
>     http://www.eyrie.org/~eagle/software/inn/docs/passwd.nntp.html
>
>
> The documentation for actsync is not clear enough and does not
> mention passwd.nntp; I will soon add a clarification.  Thanks for
> having pointed out the issue.
>   


I figured this out by attempting to use getlist, and then when it 
failed, I RTFM for getlist(1)! Then I added the authentication to the 
passwd.nntp file and it worked.

I believe you could use the getlist -A option description verbatim for 
actsync's man page:

OPTIONS
       -A  Try to authenticate using the username and password 
information in
           passwd.nntp(5) before issuing the LIST command.


>> Then there is another problem: the docheckgroups output cannot be
>> piped or directed into mod-active. Or more accurately, it doesn't
>> work for me. No errors, just active is not modified.
>>     
>
> It is very weird.  I do not understand why.
>   


Neither do I, but I will keep trying (on a new test server I'll create). 
Christmas season has just been rather busy with eating, family from 
out-of-town, eating, helping my wife with her new digital camera, 
eating, etc. Later this week I may get a chance to take a look at it 
again. (Each "eating" task mentioned above is, of course, followed by a 
"napping" period!) ;-)

I managed to get all the Usenet groups added to all working servers in 
less than an hour, but had to first create a file with only the "ctlinnd 
newgroup {newsgroup}" lines, then use it for the mod-active input.

On one INN server (via ssh) I used "wget 
ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups" to download the ISC 
newsgroups file.

Then: "cat newsgroups.1 | docheckgroups > newsgroups_changes"

Then copied only the "ctlinnd newgroup {newsgroup}" lines and pasted 
them into a new file "ctlinnd_newgroup_grouplist"

Then: "mod-active < ctlinnd_newgroup_grouplist"

That ran very fast, about five seconds for the complete alt* hierarchy 
(minus alt.binaries and a few other garbage groups).

I copied the "ctlinnd_newgroup_grouplist" file to all the other servers 
and used it for the mod-active input.

At least that is how I remember it all from a week ago, followed by too 
much food. ;-)


> Yet, something is wrong somewhere if it does not work directly…


Well, if you want my "humble opinion," I personally would have preferred 
to have a utility to work on the ISC's (or another server's) active 
file, and not mess with the newsgroups file.

After all, it is the active file that contains the important controlling 
information for a server. The newsgroups file is just an explanation of 
some of the groups, and not very well authored nor maintained. Some 
newsreaders don't support it, and some news servers don't even provide it.

If there were an easy way to modify the docheckgroup utility to use the 
active file instead of the newsgroups file, perhaps by adding a new 
option so it wouldn't be broken for those who do depend on checkgroups 
control messages, then all someone wishing to maintain their newsgroups 
file would need to do would be to occasionally download a fresh copy to 
replace the old one.

The ISC's active file of 45,959 newsgroups, after something like "awk 
'{print $1}' active > active_stripped" is 1 MB compared to 2.5 MB for 
the ISC's newsgroups file. My ISP has 108,811 newsgroups.

Just my thoughts.... ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <ifatoj$1av$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ie8fp1$ep3$1@news.trigofacile.com> <ie9aic$qd8$1@n102.xanadu-bbs.net> <ieb5km$f3l$1@news.trigofacile.com> <iei9kc$94d$1@n102.xanadu-bbs.net> <8npp3tF8peU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <ifatoj$1av$1@n102.xanadu-bbs.net>
Subject: Re: docheckgroups et al
Date: Mon, 27 Dec 2010 14:42:59 -0600
From: "John F. Morse" <john@example.invalid>
References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ie8fp1$ep3$1@news.trigofacile.com> <ie9aic$qd8$1@n102.xanadu-bbs.net> <ieb5km$f3l$1@news.trigofacile.com> <iei9kc$94d$1@n102.xanadu-bbs.net> <8npp3tF8peU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 187
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: n102.xanadu-bbs.net 1293482579 1375 192.168.89.210 (27 Dec 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Mon, 27 Dec 2010 20:42:59 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
In-Reply-To: <8npp3tF8peU1@mid.individual.net>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 7502