🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60030

Re: Redirect/Saving newsgroup to different newsgroup.

#60030
From: Jeffrey M. Vinocur
Date: Fri, 23 Aug 2002 22:52
43 lines
2697 bytes
In article <ylr8gpv5in.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>
>        s/$src/$dst/g if 1 .. /^$/ and /^(Newsgroups|Followup-To|Xref):/i;

I just realized this may subtly break things in obscure cases
where the $src newsgroup is a proper substring of some other
existing newsgroup used for crossposting (or followups).  I
suppose the code could probably be fixed by something like 

s/[^-.+[:alnum:]]$src[^-.+[:alnum:]]/$dst/g
  if 1 .. /^$/ and /^(Newsgroups|Followup-To|Xref):/i;

or whatever (I'm not sure exactly what the characterset for
newsgroup names is offhand), but boy is it ugly.  (Also
untested.)


>One other approach that can be used regardless of storage method is to
>refeed the articles to the server into a new newsgroup.

Want to mention the new refeeding program that somebody just
submitted?  (Hmm, I guess there could be an option for that to
take care of the find-replace and even the Message-ID tweaking if
desired.  Russ, does this even make sense, or am I falling asleep
at the keyboard?)


>Note that if you use this method and something goes wrong the first time,
>the message IDs will probably have all been added to history on the new
>server and the articles now will never be accepted until those entries are
>removed from history again (or all the message IDs changed).

How hard would it be to supply a tool (or bit of script in the
FAQ itself) to remove Message-IDs from history?  I've never
played with the history database, but it can't be that hard, can
it?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <ak6ec6$mb5$3@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!news.ems.psu.edu!news.litech.org!not-for-mail
References: <3D1A0033.9010402@acme.nsc.com> <ylr8ingdqb.fsf@windlord.stanford.edu> <afrib3$dc3$2@puck.litech.org> <ylr8gpv5in.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ak6ec6$mb5$3@puck.litech.org>
Subject: Re: Redirect/Saving newsgroup to different newsgroup.
Date: Fri, 23 Aug 2002 22:52:54 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <3D1A0033.9010402@acme.nsc.com> <ylr8ingdqb.fsf@windlord.stanford.edu> <afrib3$dc3$2@puck.litech.org> <ylr8gpv5in.fsf@windlord.stanford.edu>
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!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 42
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1030143174 22885 208.48.41.224 (23 Aug 2002 22:52:54 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Fri, 23 Aug 2002 22:52:54 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)