Article View: news.software.nntp
Article #74218Re: Renaming a newsgroup
From: John F. Morse
Date: Mon, 11 Sep 2006 06:53
Date: Mon, 11 Sep 2006 06:53
84 lines
5071 bytes
5071 bytes
Jeffrey M. Vinocur wrote: >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. > > I think my problems would disappear if I use a full pathname to the directory where I want the script to work. Now, as for the crossposts.... There are some crossposts in the original five groups, but not too many. Since I'm going to rename all five of the groups, will this take care of that problem? I'm curious though: How will the script handle the crossposted group names in groups other than the one where it is executing? Will I need to run it five times in each group's directory, with the new group names? Or can I run it in the new hierarchy directory "xanadu" containing the five directories, with a wildcard? Wouldn't I still need to run it five times since there are five distinct group names? What detrimental effect would result if a crossposted article was not correctly renamed? Would it be a silent error while serving the article to the reader? IOW, will it harm the server's operation, or simply log an error, which actually could make the identification of the article easier so it can be manually edited. I can see myself editing several years into the future as errors trickle in from failures. ;-) I have too many articles in the original five groups to check manually. One group, brisbee, has over 34,000 articles alone. You can see the sizes below. john@optima7:/var/spool/news/articles$ ls -l total 961 drwxrwxr-x 4 news news 424 2006-07-15 00:00 alt drwxrwxr-x 2 news news 815112 2006-09-01 20:14 brisbee drwxrwxr-x 15 news news 384 2006-08-31 11:20 christnet drwxrwxr-x 16 news news 408 2006-09-03 02:32 comp drwxrwxr-x 2 news news 70056 2006-09-10 06:53 computers drwxrwxr-x 3 news news 72 2006-06-18 12:22 control drwxrwxr-x 4 news news 104 2006-07-15 13:07 humanities drwxrwxr-x 5 news news 120 2006-09-04 10:30 local drwxrwxr-x 7 news news 200 2006-07-15 00:00 misc drwxrwxr-x 9 news news 216 2006-09-01 17:36 news drwxrwxr-x 2 news news 20232 2006-06-18 12:25 petchat drwxrwxr-x 2 news news 4848 2006-09-07 21:31 raucouscaucus drwxrwxr-x 11 news news 288 2006-09-03 02:32 rec drwxrwxr-x 3 news news 72 2006-09-07 04:56 sci drwxrwxr-x 2 news news 66024 2006-06-18 12:24 soapbox drwxrwxr-x 2 news news 72 2006-07-02 16:49 soc drwxrwxr-x 4 news news 104 2006-06-23 17:07 talk It seems modern newsreaders have lost their ability to see crossposted articles, and mark them read in all subscribed groups once they have been read in one group. Perhaps it is no longer a big issue, unless INN balks on it when running the nightly expire routines or running makehistory? >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`. > Ah so. That explains it. I forgot about the blank line delimiter. Thanks Jeff. -- John
Technical Details
Message-ID:
<OJ7Ng.103780$5i3.83664@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!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailReferences:
<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> <ee23ii$6qj$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> Subject: Re: Renaming a newsgroup Date: Mon, 11 Sep 2006 06:53:34 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> 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> <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!wn12feed!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: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <ee23ii$6qj$1@puck.litech.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 84 NNTP-Posting-Host: f9a90e17a787ce63247c0f027b51f2a8 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1157957614 NNTP-Posting-Date: Mon, 11 Sep 2006 06:53:34 GMT