🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20514

Re: does rnews dump the entire batch?

#20514
From: Jan Hrdonka
Date: Thu, 14 Aug 1997 00:00
42 lines
1406 bytes
: >Does rnews ditch the entire rnews batchfile, if there`s an error in one of
: >the batch file`s headers/body?  
: Not unless that error causes it to be unable to figure out the
: rest of the batch.

  I disagree. My experience is that rnews ditches the entire batchfile
if there's an error there. My simple script below might help you.

  H.

#!/usr/contrib/bin/perl
# /usr/news/bin/cleanup.pl
 
$rnews="/usr/news/bin/rnews -v";
$open=0;
 
while(<>){
  if(/^#! rnews/){
    close(STDOUT);
    if(!open(STDOUT, "|$rnews")){
      die("can't pipe $rnews\n");
    };
    $open=1;
  }else{
    if($open){
      print;
    };
  };
};
close(STDOUT);
 
#eof

% cd /var/news/spool/in.coming 
% foreach f (3*)
foreach? /usr/news/bin/cleanup <$f
foreach? rm $f
foreach? end
%

Technical Details
Message-ID: <5sv748$o1p$1@news.eunet.cz>
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: <Pine.LNX.3.93.970813170323.17750A-100000@jason.interalpha.net> <5ssq8u$h2r$1@scanner.worldgate.com>

Show Full Headers
Complete Article Headers
Message-ID: <5sv748$o1p$1@news.eunet.cz>
Subject: Re: does rnews dump the entire batch?
Date: Thu, 14 Aug 1997 00:00:00 +0000
From: hrd@eunet.cz (Jan Hrdonka)
References: <Pine.LNX.3.93.970813170323.17750A-100000@jason.interalpha.net> <5ssq8u$h2r$1@scanner.worldgate.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!not-for-mail
X-Deja-AN: 264632053
Organization: EUnet Czechia
Newsgroups: news.software.nntp