Thread View: news.software.nntp
3 messages
3 total messages
Started by Jason Brown
Wed, 13 Aug 1997 00:00
does rnews dump the entire batch?
Author: Jason Brown
Date: Wed, 13 Aug 1997 00:00
Date: Wed, 13 Aug 1997 00:00
15 lines
874 bytes
874 bytes
Hi! Does rnews ditch the entire rnews batchfile, if there`s an error in one of the batch file`s headers/body? Also does it do a similiar thing if one of the articles in the batchfile is out of date, say the article is 9 days old and the innd -c flag is set to 7 days for example? Jason.
Re: does rnews dump the entire batch?
Author: Marc Slemko
Date: Wed, 13 Aug 1997 00:00
Date: Wed, 13 Aug 1997 00:00
19 lines
1109 bytes
1109 bytes
In <Pine.LNX.3.93.970813170323.17750A-100000@jason.interalpha.net> Jason Brown <jbrown@interalpha.co.uk> writes: >Hi! >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. >Also does it do a similiar thing if one of the articles in the batchfile >is out of date, say the article is 9 days old and the innd -c flag is set >to 7 days for example? No.
Re: does rnews dump the entire batch?
Author: Jan Hrdonka
Date: Thu, 14 Aug 1997 00:00
Date: Thu, 14 Aug 1997 00:00
42 lines
1406 bytes
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
%
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads