🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53924

Re: 441 Can't set system "X-Trace" header

#53924
From: madog
Date: Thu, 23 Aug 2001 02:19
45 lines
2201 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:ylsnejvbq5.fsf@windlord.stanford.edu...
| In news.software.nntp, madog <madog@madogcc.myip.org> writes:
|
| > any idea how to fix this problme ? thanks !
|
| Strip out the X-Trace header before posting articles to remote servers.

thanks, but i think this script is used to do the "strip" job,  is there
anything i need to modify ?
(i don't understand script language)

[root@madogcc /tmp]# more put.news.sm
#!/bin/sh

# this is just a simple script to use sed to strip off the
# NNTP_Posting_Host and Xref headers that my ISP's newsfeed
# doesn't like.
# It is set up for INND using CNFS, so it uses the sm command
# to get the actual article

TMPFILE=/tmp/tmp$$
SEDCMD="/^NNTP-Posting-Host/d"
SEDCMD2="/^Xref/d"
OUTFILE=$2

/usr/bin/sm $1 > $TMPFILE

if [ -f ${TMPFILE} ]; then

        sed -e ${SEDCMD} ${TMPFILE} | sed -e ${SEDCMD2} > ${OUTFILE}

        if [ $? -ne 0 ]; then
                echo "Error"
                exit -1
        fi

        rm ${TMPFILE}
fi





Technical Details
Message-ID: <9m1p8d$glh$1@mail.cn99.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.cn99.com!not-for-mail
References: <9m1glq$b90$1@mail.cn99.com> <ylsnejvbq5.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <9m1p8d$glh$1@mail.cn99.com>
Subject: Re: 441 Can't set system "X-Trace" header
Date: Thu, 23 Aug 2001 10:19:54 +0800
From: "madog" <madog@madogcc.myip.org>
References: <9m1glq$b90$1@mail.cn99.com> <ylsnejvbq5.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.cn99.com!not-for-mail
Newsgroups: news.software.nntp,comp.os.linux.misc,news.admin.misc
Organization: Bentium Ltd. (CN99)
Lines: 44
NNTP-Posting-Host: 61.145.128.170
X-Trace: mail.cn99.com 998533197 17073 61.145.128.170 (23 Aug 2001 02:19:57 GMT)
X-Complaints-To: usenet@news.cn99.com
NNTP-Posting-Date: Thu, 23 Aug 2001 02:19:57 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200