🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #67129

Re: INN + Rnews woes

#67129
From: Kaden
Date: Mon, 10 Nov 2003 05:40
127 lines
5853 bytes
ok this is what i did

su news
cd ~
vi ~/scripts/fix-messageids.pl

#!/usr/bin/perl -wi
my ($src, $dst) = (shift, shift);
die "Usage: $0 old new [file1 [file2 ...]]\n"
        unless(defined $dst);
while(<>) {
        s/$src/$dst/g if 1 .. /^$/ and /^(Message-ID|References):/i;
        print;
    } continue {
        close ARGV if eof;
    }

chmod 755 ~/scripts/fix-messageids.pl

cd /var/spool/news/incoming/bad

~/scripts/fix-messageids.pl newtesttrackpro. bull.kromestudios.com *

^i have tied this bit with the actual filenames as well^

mv /var/spool/news/incoming/bad/* /var/spool/news/incoming/

rnews -U
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230fc7n3B3
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230f9w7Nte
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230fmrhMop
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230fx2UYxA
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230faqACJL
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230fzNni0W
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230fcWR4k8
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230f5k94Hj
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230fWE9J7u
Unspooling failed saving to /var/spool/news/incoming/bad/3faf230frzUVxG



 vi /var/log/news/news.notice

Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f68f943$1@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f68f943$1@newtesttrackpro.> 3faf1e16
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f68fa8a$1@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f68fa8a$1@newtesttrackpro.> 3faf1e16
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f69cbc2$1@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f69cbc2$1@newtesttrackpro.> 3faf1e16
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f69d55c$1@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f69d55c$1@newtesttrackpro.> 3faf1e16
Nov 10 15:33:03 bull rnews: bad_article missing Subject
Nov 10 15:33:03 bull rnews: cant unspool saving to
/var/spool/news/incoming/bad/3faf230f5k94Hj
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f907efd$1@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f907efd$1@newtesttrackpro.> 3faf1e1a
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f907f03$1@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f907f03$1@newtesttrackpro.> 3faf1e1a
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f907ffa@newtesttrackpro.>
Nov 10 15:33:03 bull rnews: offered <3f907ffa@newtesttrackpro.> 3faf1e1a
Nov 10 15:33:03 bull innd: localhost:17 bad_messageid
<3f90821f$1@newtesttrackpro.>


vi /var/spool/news/incoming/bad/3faf230f5k94Hj
! rnews 1201
From: "#############" <##################>   <- i deteled this
Newsgroups: fun
References: <3f68c36e$1@newtesttrackpro.> <3f68f041@newtesttrackpro.>
<3f68f205$1@newtesttrackpro.> <3f68f2cc@newtesttrackpro.>
<3f68f40e$1@newtesttrackpro.> <3f68f655$1@newtesttrackpro.>
Subject: Re: CD Burning software
Date: Wed, 17 Sep 2003 17:14:56 +1000
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 192.168.1.150
Message-ID: <3f68f943$1@newtesttrackpro.>
X-Trace: newtesttrackpro. 1063844163 192.168.1.150 (17 Sep 2003
17:16:03 -0700)
Path: newsx!newtesttrackpro.
Xref: newtesttrackpro fun:11643

and message here..........
plus more after here


either i am doing something wrong in the script, or it is not working


any ideas?


"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:bomvq4$d6e$1@puck.litech.org...
> In article <bompis$8am$1@bull.kromestudios.com>,
> Kaden <kadennapper@kromestudios.com> wrote:
> >ok, well im stupid, can someone explain to me this script, i have no idea
> >how to use it :)
>
> It's a Perl script.  You should put it in a text file (called
> "fix-messageids.pl" or something).  Then make it executable with
>
>     chmod a+x fix-messageids.pl
>
> and run it as
>
>     fix-messageids.pl "newtesttrackpro." "SOMETHING" <files>
>
> where SOMETHING is whatever you want the domain of your internal
> articles to be, and <files> is the list of articles on disk.
>
>
> -- 
> Jeffrey M. Vinocur
> jeff@litech.org

Technical Details
Message-ID: <bon8dg$chh$1@bull.kromestudios.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.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!newsfeeder.syd.optusnet.com.au!news.optusnet.com.au!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail
References: <1068160611.664182@proxy.uecomm.net.au> <bomhdo$5ia$1@bull.kromestudios.com> <bomj3k$4lk$2@puck.litech.org> <bompis$8am$1@bull.kromestudios.com> <bomvq4$d6e$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <bon8dg$chh$1@bull.kromestudios.com>
Subject: Re: INN + Rnews woes
Date: Mon, 10 Nov 2003 15:40:07 +1000
From: "Kaden" <kadennapper@kromestudios.com>
References: <1068160611.664182@proxy.uecomm.net.au> <bomhdo$5ia$1@bull.kromestudios.com> <bomj3k$4lk$2@puck.litech.org> <bompis$8am$1@bull.kromestudios.com> <bomvq4$d6e$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.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!newsfeeder.syd.optusnet.com.au!news.optusnet.com.au!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail
Newsgroups: news.software.nntp
Organization: Krome Studios Pty. Ltd. News Server
Lines: 127
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Cache-Post-Path: proxy.uecomm.net.au!unknown@203.94.140.5
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
NNTP-Posting-Host: 203.94.128.124
X-Complaints-To: news@pacific.net.au
X-Trace: nasal.pacific.net.au 1068443070 203.94.128.124 (Mon,
NNTP-Posting-Date: Mon, 10 Nov 2003 16:44:30 EST