Article View: news.software.nntp
Article #7450Re: suck, get.news.innxmit : Posting problem
From: Jerry Lynch
Date: Fri, 10 May 1996 00:00
Date: Fri, 10 May 1996 00:00
87 lines
3078 bytes
3078 bytes
There is a "filtering" example file, just add a line to strip out that
line also. Here is my personal modified version, it alters four item:
1: removes the NNTP-Posting-Host line
2: removes the Xref line
3 & 4: looks for any occurance of my e-mail address with my "dynamic"
ip info, and corrects it to display my real e-mail address (lynch.94@osu.edu).
Hope it helps.
Jerry
-------------------------------8< Cut Here >8----------------------
#!/bin/sh
# this is just a simple script to run the one line sed
# command to strip off the NNTP Posting Header that
# my ISP's newsfeed doesn't like.
# this could be written as a one liner
# sed -e CMD $1 > $2
# MODIFIED BY JERRY LYNCH <lynch.94@osu.edu>
#set -x
if [ $# -ne 2 ]; then
echo
echo "Usage `basename $0` infile outfile <RETURN>"
echo
exit -1
fi
SEDCMD1="/^NNTP-Posting-Host/d"
SEDCMD2="/^Xref/d"
SEDCMD3="s/lynch.94@osu.edu/lynch.94@osu.edu/"
SEDCMD4="s/lynch.94@osu.edu/"
OUTFILE=$2
INFILE=$1
if [ -f ${INFILE} ]; then
sed -e ${SEDCMD1} ${INFILE} | \
sed -e ${SEDCMD2} - | \
sed -e ${SEDCMD3} - | \
sed -e ${SEDCMD4} - > ${OUTFILE}
if [ $? -ne 0 ]; then
echo "Error"
exit -1
fi
else
echo "$1 does not exist"
exit -1
fi
-------------------------------8< Cut Here >8----------------------
On Thu, 09 May 1996 17:31:38 +0200, Andreas Steffan <p25a003@rrz.uni-hamburg.de> wrote:
>Hi !
>
>With inn 1.4 as my local newssystem, I use suck to build newsbatches.
>However, I sometimes have a problem, posting news with the
>get.news.innxmit-script included in the suck distribution.
>Occasionally I get this message running the script:
>
>Connected to rzsun02-fi.rrz.uni-hamburg.de
>200 news.rrz.uni-hamburg.de InterNetNews NNRP server INN 1.4 20-Mar-93
>ready (posting ok).
>340 Ok
>240 Article posted
>340 Ok
>441 Can't set system "Xref" header
>Malfunction. Unable to post Article!
>Closing connection to rzsun02-fi.rrz.uni-hamburg.de
>Error remote posting
>
>Can you help me ?
>--
>
>
> TNX Andreas
>
>------------------------------------------------------------------------
>Andreas Steffan email: p25a003@rrz.uni-hamburg.de
>Hamburg, Germany
>
>* win: command not found
>------------------------------------------------------------------------
--
Jerry <lynch.94@osu.edu>
Technical Details
Message-ID:
<slrn4p70u9.pd4.lynch.94@osu.edu>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-mailReferences:
<31920FDA.9D53958@rrz.uni-hamburg.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn4p70u9.pd4.lynch.94@osu.edu> Subject: Re: suck, get.news.innxmit : Posting problem Date: Fri, 10 May 1996 00:00:00 +0000 From: lynch.94@osu.edu (Jerry Lynch) References: <31920FDA.9D53958@rrz.uni-hamburg.de> 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: 154156579 Distribution: inet Organization: The Ohio-State University Newsgroups: news.software.nntp