🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Duncan Gibson Mon, 23 Sep 1996 00:00
Malformed articles causing backlog
#11066
Author: Duncan Gibson
Date: Mon, 23 Sep 1996 00:00
30 lines
1555 bytes

We are a Cnews site (Nov 94, CR D) using nntp-1.5.11t5 as the
transport mechanism. Our feed site is running INN something.

Over the past few days our incoming feed has been blocked by a
series of malformed articles which results in an entry in the
nntp log file along the lines of:

    cpstdin: EOF before period on line by itself <msg-ID>

In order to keep things moving, I am obliged to create a local
article with the offending msg-ID so that the feed is told that
we already have the article and doesn't try to send it again.

Has anybody else seen this problem? Do you have a solution?

Cheers
Duncan

PS. According to the message-ID these articles have come from
chamellot.com and information.com, but that is incidental to
this post.

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

Re: Malformed articles causing backlog
#11091
Author: 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

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