🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41999

Re: Rename newsgroups in INN

#41999
From: Etienne Gauthier
Date: Tue, 07 Dec 1999 00:00
47 lines
2587 bytes
Michael Scheferhoff wrote:
> 
> Etienne Gauthier wrote:
> 
> >   Personally, I had create a new newsgroup, and created my own refeed
> > script, that will modify the message ID (by just adding one letter).
> > Then, I post a message in the old newsgroup that explain why the
> > newsgroup is closed, and give an URL to go to the newname newsgroup.
> >
> 
> Hi Etienne,
> 
> this is a good idea. How do you post the messages? Did you automate this
> perhaps by using a perl script?


  Yes, I did it with a perl script. Every thing is written in french, so
I just say to you what I've done. If you want more, I'll see if it's
possible to give you the source (I should not be allowed to do so, as my
company is the owner of my work, but, as I've got help here, I can help
others now...)

- I opendir the directory where articles are stored (hum, this works
only if you have conventional storage, not CNFS). Each entry wich name
is a number is an article.
- I scan each line. If :
   /Message-ID: <(.*)@(.*)>/i  then I print to the output : "Message-ID:
<$1repost.$2>\n"
   /Reference: $1$/i           then I do the same thing ... But $1 main
contains more than one reference (separated by spaces)
   /Newsgroup: (.$)$/i         then $1 is a list of newsgroup names
(more than one if cross-posted). Find your newsgroup, and change its
name.
   /^X-Trace:/i                then I do not print the line to the
output.
   /^X-Complaints-To:/i        then I do not print the line to the
output.
   /^Xref:/i                   then I do not print the line to the
output.
   else I print the line without modification.


Hope this helps

Etienne

Technical Details
Message-ID: <384CF5C3.27D1491A@capgemini.fr>
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!not-for-mail
References: <384B77EA.167C162B@gmx.de> <87r9h0jogg.fsf@slip129-37-99-131.tx.us.prserv.net> <384BF5B6.91B327F5@capgemini.fr> <384CE3A0.48C4C878@gmx.de>

Show Full Headers
Complete Article Headers
Message-ID: <384CF5C3.27D1491A@capgemini.fr>
Subject: Re: Rename newsgroups in INN
Date: Tue, 07 Dec 1999 00:00:00 +0000
From: Etienne Gauthier <egauthie@capgemini.fr.nospam>
References: <384B77EA.167C162B@gmx.de> <87r9h0jogg.fsf@slip129-37-99-131.tx.us.prserv.net> <384BF5B6.91B327F5@capgemini.fr> <384CE3A0.48C4C878@gmx.de>
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!not-for-mail
X-Deja-AN: 557666056
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@oleane.net
X-Trace: minus.oleane.net 944567827 1007 194.3.234.177 (7 Dec 1999 11:57:07 GMT)
Organization: Cap Gemini
Mime-Version: 1.0
NNTP-Posting-Date: 7 Dec 1999 11:57:07 GMT
Newsgroups: news.software.nntp