🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74238

Re: Renaming a newsgroup

#74238
From: John F. Morse
Date: Tue, 12 Sep 2006 17:48
94 lines
4670 bytes
Jeffrey M. Vinocur wrote:

>In article <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>Actually, I was fishing for a command to get a listing of the "count" of 
>>individual files. I found nothing for ls, dir, or vdir.
>>    
>>
>
>Ah.  I don't know if there's a standard tool.  I would do this:
>
>    find . -type f | perl -wpe 's@^([^/])*/([^/]*)/.*@$2@' | uniq -c
>  
>


That seems to give an accurate count. It agrees with the count I 
obtained a couple of days ago using a GUI file manager (nautilus):

news@optima2:~/archive/articles/xanadu$ find . -type f | perl -wpe 
's@^([^/])*/([^/]*)/.*@$2@' | uniq -c
     40 test
      1 announce
    201 raucouscaucus
   2902 computers
   2749 soapbox
    841 petchat
  33960 brisbee

Thanks for the script.


>>I was just wondering what makehistory (or whatever reads every article's 
>>header) might do when it encountered articles with invalid Xref groups. 
>>But after some additional caffeine, I presume it would ignore those 
>>groups, as it does anyway when an article was crossposted to groups on a 
>>peer, and are not in the active file on the local server.
>>    
>>
>
>I presume so to.
>
>When an article comes in, INN reconstructs the Xref header to
>only include those groups it carries.  But if you try to rebuild
>and the Xref header has an old group, well, I suspect it would
>ignore it too.  It might error, but it would error immediately;
>regardless you won't end up with an unstable database that could
>cause you trouble later.
>


I do see articles with Newsgroups, Follow-up-To and Xref (in some of the 
brisbee articles, anyway) showing other crossposted groups that were not 
renamed with the "xanadu." in front of the group names. These messages 
do not appear in those other groups.

Perhaps that is the reason the message counts are not the same in the 
old and the new hierarchies:

oldgroup           newgroup (xanadu.*)
brisbee     34140  x.brisbee     33780
computers    2988  x.computers    2816
control.cancel 57  empty
local.announce  1  x.announce        1
local.test     40  x.test           40
petchat       879  x.petchat       803
raucouscaucus 223  x.raucouscaucus 179
soapbox      2881  x.soapbox      2617

As you can see, these counts do not agree with the accurate count above. 
The oldgroups is higher, probably because of holes from canceled 
articles. The newgroups is lower, probably because of missing 
crossposted messages not showing up in the list of articles. The 
announce and test groups never had anything crossposted, and never 
anything canceled, so they match.

I guess I'll have to run the script in every directory, for every group 
-- the "25" I mentioned earlier. ;-)

Except it takes 18 passes in the large brisbee group (1*, 3*-9* and 
20*-29*). Plus four more passes through the other four directories (16). 
That's 34 passes. :-(

But first I'll try your "find . -type f -print0 | xargs -0 renamer.pl 
oldgroup newgroup" script and see if it can save me from the asylum. 
Actually, some sleep is needed first, since I've been at this for about 
16 hours now.

Again, thanks for bearing with me.

-- 
John
Technical Details
Message-ID: <NpCNg.117971$5i3.30183@bgtnsc04-news.ops.worldnet.att.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> <ee3bcp$sqa$1@puck.litech.org> <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net> <ee6nbc$pv6$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <NpCNg.117971$5i3.30183@bgtnsc04-news.ops.worldnet.att.net>
Subject: Re: Renaming a newsgroup
Date: Tue, 12 Sep 2006 17:48:29 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> <ee3bcp$sqa$1@puck.litech.org> <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net> <ee6nbc$pv6$1@puck.litech.org>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Debian Thunderbird 1.0.2 (X11/20060423)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <ee6nbc$pv6$1@puck.litech.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 94
NNTP-Posting-Host: ddd4a74470da6efe1249f2dc581ca677
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1158083309
NNTP-Posting-Date: Tue, 12 Sep 2006 17:48:29 GMT