🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11091

Re: Malformed articles causing backlog

#11091
From: Duncan Gibson
Date: Mon, 23 Sep 1996 00:00
78 lines
2447 bytes

Oh, of course, I should have said that you should email me a
copy of any followup because obviously we have a major backlog
(looks like 4 days!)

I have just whipped up a quick script which grabs the offending
message-ID from the nntp log file, and generates a local article
with the same message-ID. This prevents our feed from trying to
send the corrupted article next time round. I'm currently running
this on a 5-minute cycle until the current batch of bad articles
is exhausted.

Cheers
Duncan

Here's the basis of the script - you will need to customise it
for your own use...

#!/bin/ksh
#

tmp=/tmp/drg.nn.$$ ; export tmp

grep "cpstdin: EOF before period on line by itself" ~news/nntplog \
    | sed 's/^.*</</' \
    | sed 's/>.*$/>/' \
    > $tmp

if [ ! -s $tmp ]
then
    rm -f $tmp
    exit 0
fi

msgID=`tail -1 $tmp`

if [ "x$msgID" = "x" ]
then
    rm -f $tmp
    exit 0
fi

grep -q "$msgID" ~news/history

case $? in
    0)  echo $msgID already in history
        exit 0
        ;;
    *)  echo $msgID not yet processed
        ;;
esac

(
    echo Newsgroups: local.test
    echo Path: news
    echo From: news@localhost \(news automaton\)
    echo Subject: testing - please ignore
    echo Message-ID: $msgID
    echo Date: `date +"%a, %d %b %Y %X %Z"`
    echo Distribution: local
    echo Organization: Insert your Organization here
    echo 
    echo testing - please ignore
    echo generating dummy article to insert Message-ID in history
) > $NEWSSPOOL/in.coming/0.8431273570.t

$NEWSBIN/input/newsrun 0

rm -f $tmp


This is my article, not my employer's, with my opinions and my disclaimer!
--
Duncan Gibson, ESTEC/YCV, Postbus 299, 2200AG Noordwijk, The Netherlands
Tel: +31 71 5654013   Fax: +31 71 5656142  Email: duncan@yc.estec.esa.nl

Technical Details
Message-ID: <Dy6owE.HAC@yc.estec.esa.nl>
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: <Dy6GGt.F8G@yc.estec.esa.nl>

Show Full Headers
Complete Article Headers
Message-ID: <Dy6owE.HAC@yc.estec.esa.nl>
Subject: Re: Malformed articles causing backlog
Date: Mon, 23 Sep 1996 00:00:00 +0000
From: duncan@yc.estec.esa.nl (Duncan Gibson)
References: <Dy6GGt.F8G@yc.estec.esa.nl>
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: 184767305
Organization: ESA/ESTEC/YC, Noordwijk, The Netherlands
Newsgroups: news.software.nntp,news.admin.misc