Article View: news.software.nntp
Article #46699Re: NO LUCK
From: Dan Glover
Date: Tue, 30 May 2000 00:00
Date: Tue, 30 May 2000 00:00
55 lines
2381 bytes
2381 bytes
In article <3934414E.A02AC643@mali.globalnet.hr>, Kruno Cicmir
<kruno@mali.globalnet.hr> wrote:
>/etc/news/skripta
>-----------------
>#!/bin/sh
>sed -e '/^NNTP-Posting-Host: /d
> /^X-Trace: /d
> /^X-Complaints-To: /d
> /^Xref: /d ' $1 > $2
That looks familiar. What happens if you do:
/etc/news/skripta < /var/spool/news/some/valid/group/123 > foo
Look in foo to see whether the lines get removed or not.
I *did* wonder whether the - in the search patterns need to be escaped,
though the above worked for me this morning. You've probably got a
different version of sed which is more strict in observance? Mine is:
$sed --version
GNU sed version 3.02
The "escaped" version would look something like:
sed -e '/^NNTP\-Posting\-Host: /d
/^X\-Trace: /d
/^X\-Complaints-To: /d
/^Xref: /d ' $1 > $2
>--> rpost news.tel.hr -p /var/spool/news -b
>/var/spool/news/out.going/news.tel.hr -f /etc/news/skripta
>\$\$o=FILTERED_MSG \$\$i FILTERED_MSG
That looks OK, but hang on a minute...
>441 Can't set system "NNTP-Posting-Date" header
>Malfunction, Unable to post Article!
You also need:
/^NNTP-Posting-Date: /d (maybe with \ added)
Make sure this is inserted between the ' ' around the commands.
Sorry if I missed in a previous post that you were getting the *date*
header rejected as well.
Dan
--
Dan Glover (dan@dangl.demon.co.uk)
Technical Details
Message-ID:
<FvEAG4.J5z@dgsys.co.uk>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:
<39327C03.FAE50139@mali.globalnet.hr> <39328528.88081461@mali.globalnet.hr> <FvBx5H.Ao5@dgsys.co.uk> <3932DDF8.36F1A526@mali.globalnet.hr> <FvD0y5.F8o@dgsys.co.uk> <3934414E.A02AC643@mali.globalnet.hr>Show Full Headers
Complete Article Headers
Message-ID: <FvEAG4.J5z@dgsys.co.uk> Subject: Re: NO LUCK Date: Tue, 30 May 2000 00:00:00 +0000 From: Dan Glover <news@dangl.demon.co.uk> References: <39327C03.FAE50139@mali.globalnet.hr> <39328528.88081461@mali.globalnet.hr> <FvBx5H.Ao5@dgsys.co.uk> <3932DDF8.36F1A526@mali.globalnet.hr> <FvD0y5.F8o@dgsys.co.uk> <3934414E.A02AC643@mali.globalnet.hr> 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: 629224998 Sender: dan@dgsys.co.uk (Dan Glover) X-Complaints-To: abuse@theplanet.net X-Trace: newsg3.svr.pol.co.uk 959728392 3263 62.136.109.85 (30 May 2000 23:13:12 GMT) Organization: One day, maybe! Reply-To: newsreply@dgsys.co.uk NNTP-Posting-Date: 30 May 2000 23:13:12 GMT Newsgroups: news.software.nntp