Article View: news.software.nntp
Article #46642Re: almost
From: Dan Glover
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
31 lines
1813 bytes
1813 bytes
In article <39328528.88081461@mali.globalnet.hr>, Kruno Cicmir <kruno@mali.globalnet.hr> wrote: >I have read man rpost , but i dont know to write scripts and now i have >to remove the X-Trace how ?? OK, you need to have a filter which takes out anything like that, for example: sed -e "/^Xref: /d" $1 > $2 sed -e "/X-Trace: /d" $1 > $2 This be done better by putting the commands in a separate file and only calling sed once, or even doing both in one line, but anyway... What it does is find and delete any line beginning with Xref and then any with X-Trace. $1 is the name of the input file and $2 the output, both of these are supplied in the rpost command. > 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 In your case the commands seem to be in /etc/news/skripta, so follow the example above and add any other headers you need to remove. Dan -- Dan Glover (dan@dangl.demon.co.uk)
Technical Details
Message-ID:
<FvBx5H.Ao5@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>Show Full Headers
Complete Article Headers
Message-ID: <FvBx5H.Ao5@dgsys.co.uk> Subject: Re: almost Date: Mon, 29 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> 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: 628652962 Sender: dan@dgsys.co.uk (Dan Glover) X-Complaints-To: abuse@theplanet.net X-Trace: news5.svr.pol.co.uk 959616998 30015 62.136.116.243 (29 May 2000 16:16:38 GMT) Organization: One day, maybe! Reply-To: newsreply@dgsys.co.uk NNTP-Posting-Date: 29 May 2000 16:16:38 GMT Newsgroups: news.software.nntp