🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14064

Re: Xref: causing messages to be rejected

#14064
From: Jonathan I. Kamens
Date: Wed, 15 Jan 1997 00:00
48 lines
2848 bytes
There is nothing new about the Xref header; it has been around for
years and years.  It is possible that what is new is putting an Xref
header even in messages that are posted to only one group; in the past,
most News servers have only inserted Xref for articles cross-posted to
two or more groups.

You don't say what software you are using to feed the articles from
your machine to your ISP, and that's unfortunate, because that software
is what is causing your problem.  The ISP's server is correct to reject
articles which already have an "Xref" header.  Whatever software you
are using to feed your posted articles to your ISP should be stripping
that header out before feeding the articles.

For example, I use suck's "rpost" command to feed the articles I post
locally on my home machine to my ISP's server.  I give it the argument
"-f ./dopost.filter", and the "dopost.filter" file is an executable
shell script which contains the following:

---cut here---
#!/bin/sh

awk -F: '/^$/ { body=1 } body || !/^(Xref|NNTP-Posting-Host):/ {print}' \
        $1 > $2
---cut here---

This script strips out "Xref" and "NNTP-Posting-Host", two headers
which are set by nnrpd when an article is posted but which cannot be
legally set in an article that is fed to a server with the POST
command.  If you use rpost, you can use this same approach; if you use
some other program to upload your articles, you'll have to figure out
how to get it to strip out these headers, or consult its documentation
and see if it already tells you how to do it, or tell us what software
it is so perhaps someone here who uses it can tell you how to do it.

Incidentally, if "li.net" is your ISP's domain rather than your own,
then you should not be posting articles whose message IDs end in
"li.net".  When News software generates a message ID for an article, it
is required to use the host name or domain name of the actual host on
which the article was generated; otherwise, there is a possibility of
two messages generated on two different hosts having the same message
ID.  You need to reconfigure your News software to put "@icehouse.com"
or something at the end of your message IDs.

-- 
Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com

Technical Details
Message-ID: <5bisbc$rfs$1@pad-thai.cam.ov.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
References: <32DC3152.49383004@li.net>

Show Full Headers
Complete Article Headers
Message-ID: <5bisbc$rfs$1@pad-thai.cam.ov.com>
Subject: Re: Xref: causing messages to be rejected
Date: Wed, 15 Jan 1997 00:00:00 +0000
From: jik@cam.ov.com (Jonathan I. Kamens)
References: <32DC3152.49383004@li.net>
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: 209982302
Organization: OpenVision Technologies, Inc.
Newsgroups: news.software.nntp