🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #59440

Re: Redirect/Saving newsgroup to different newsgroup.

#59440
From: Prakash Subramanian
Date: Wed, 03 Jul 2002 23:04
79 lines
3852 bytes
Hi,

Since I am using tradspool, I renamed newsgroup A to new newsgroup B and 
I was able to use a perl script to change the headers as follows.

  perl -pi -e 's/^(Newsgroups|Followup-To|Xref)(: .*)A(.*)$/\1\2B\3/' *

Then, I deleted both history/databases and overview and re-created 
everything from the spool as follows.

   makehistory -b -O

When I feed this newsgroup to a peer, it fails to send them. No error 
messages. Newsreaders can see newsgroups on A too.

How do I change MessageID if this is the one causing the problem.

Thanks
-Prakash



Jeffrey M. Vinocur wrote:

> In article <ylr8ingdqb.fsf@windlord.stanford.edu>,
> Russ Allbery  <rra@stanford.edu> wrote:
> 
>>Jeffrey M Vinocur <jeff@litech.org> writes:
>>
>>
>>>[ renaming newsgroups / moving articles to a different group ]
>>>
>>>(Russ, perhaps it should go in the INN FAQ.)
>>>
>>Do we have a good answer for it?  I guess for the general case of moving a
>>newsgroup to another group on the same host, the answer is to dump all the
>>articles into separate files, change the newsgroups headers, and reinject
>>them.
>>
> 
> Well, there are two subtly different questions, as I see it:
> 
> - Renaming a group.  In this case you probably want everything to
>   be exactly the same except for the group name, including most
>   likely Message-IDs.  This is feasible in tradspool by moving
>   the files, applying some simple Perl, rebuilding
>   history/overview after you're done.
> 
> - Moving articles to a different, existing, group (or merging
>   groups).  In this case, you can't preserve article numbers,
>   certainly.  In order to get the server to assign numbers,
>   you'd need to reinject the articles (either munging the
>   Message-IDs or purging them from history first).
>   Alternatively, you could very carefully assign the article
>   numbers yourself, and then rebuild everything as above.
> 
> Personally, I hope I never have to do either.  But people seem to
> want to do this (more often the first one, I think), and we
> should at least provide the bit of Perl needed to do this with
> tradspool.  Something like this (essentially untested):
> 
> 
> #!/usr/bin/perl -wi
> 
> my ($src, $dst) = (shift, shift);
> die "Usage: $0 oldgroup newgroup [file1 [file2 ...]]\n" unless(defined $dst);
> 
> while(<>) {
>     s/$src/$dst/gi if 1 .. /^$/ and /^(Newsgroups|Xref):/;
>     print;
> } continue {
>     close ARGV if eof;
> }
> 
> 
> 
> 

Technical Details
Message-ID: <3D2382F1.6060808@acme.nsc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!arclight.uoregon.edu!wn4feed!wn2feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!12.120.28.17!attla2!attla1!ip.att.net!usenet.nsc.com!not-for-mail
References: <3D1A0033.9010402@acme.nsc.com> <afqfrp$df$3@puck.litech.org> <ylr8ingdqb.fsf@windlord.stanford.edu> <afrib3$dc3$2@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <3D2382F1.6060808@acme.nsc.com>
Subject: Re: Redirect/Saving newsgroup to different newsgroup.
Date: Wed, 03 Jul 2002 16:04:17 -0700
From: Prakash Subramanian <prakash@acme.nsc.com>
References: <3D1A0033.9010402@acme.nsc.com> <afqfrp$df$3@puck.litech.org> <ylr8ingdqb.fsf@windlord.stanford.edu> <afrib3$dc3$2@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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!arclight.uoregon.edu!wn4feed!wn2feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!12.120.28.17!attla2!attla1!ip.att.net!usenet.nsc.com!not-for-mail
Newsgroups: news.software.nntp
Organization: National Semiconductor, Santa Clara
Lines: 78
NNTP-Posting-Host: jigsaw.nsc.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: usenet.nsc.com 1025737884 17057 139.187.63.25 (3 Jul 2002 23:11:24 GMT)
X-Complaints-To: usenet@usenet.nsc.com
NNTP-Posting-Date: Wed, 3 Jul 2002 23:11:24 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.2) Gecko/20011002 Netscape6/6.1
X-Accept-Language: en-us