🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74219

Re: Renaming a newsgroup

#74219
From: Jeffrey M. Vinocur
Date: Sun, 10 Sep 2006 22:28
49 lines
3201 bytes
In article <RzZMg.99175$5i3.82988@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>1. Where would you suggest I put the Perl script (since news must run 
>this, perhaps pathbin)?

This is what I used to do, but then I realized that it make it
really confusing later on to figure out what was part of INN vs
something random I'd downloaded.  So when I wanted to migrate to
a new machine, I'd do a fresh install of INN and have to dig
through the bin directories to find the third-party stuff.

Now I have a separate place ($pathnews/custom) where I keep such
things, and if I feel like I'll use it frequently, I put a
symbolic link in $pathbin for convenience.


>Would you run it from within each group's directory to be
>modified (within the oldgroup or newgroup directory), or does it
>matter?

I certainly wouldn't move the script into each directory, that's
a waste of your time.  I'd keep the script in some stable
location as above.  (It's a matter of personal preference whether
you run the script from wherever but specify the path to the
articles you want to change, or go to wherever the articles are
and then run the script with just "*" as the last argument.)

Incidentally, if you have crossposts in the groups you're
renaming, you should include all the articles that might be
crossposted no matter which group (on disk) they're stored in.
There's no harm done (except a bit of prolonged execution time)
to include too many articles in the run.


>2. Will the script change any occurrence of the oldgroup name should it 
>appear in the body of an article following one of the three header 
>fields in the if statement? I can't see where it is restricted to the 
>header only, but I don't know Perl.

Nope.  The bit that says "1 .. /^$/" means that the script stops
after the empty line that separates the body from the headers.
It's a subtle bit of Perl, but if you're curious, you want the
section "Range operators" in `man perlop`.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <ee23ii$6qj$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!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news.litech.org!not-for-mail
References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <ee14j8$c6a$1@puck.litech.org> <RzZMg.99175$5i3.82988@bgtnsc04-news.ops.worldnet.att.net>

Show Full Headers
Complete Article Headers
Message-ID: <ee23ii$6qj$1@puck.litech.org>
Subject: Re: Renaming a newsgroup
Date: Sun, 10 Sep 2006 22:28:34 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <ee14j8$c6a$1@puck.litech.org> <RzZMg.99175$5i3.82988@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!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 49
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1157927314 6995 66.218.0.75 (10 Sep 2006 22:28:34 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sun, 10 Sep 2006 22:28:34 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)