🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66458

Re: INN 2.4 X-Trace Header

#66458
From: Steve
Date: Sun, 10 Aug 2003 23:07
54 lines
2163 bytes
Marco d'Itri wrote:

> steve@nospam-goofer.co.uk wrote:
> 
>>I've configured INN to drop the NNTP-Posting-Host header, but the
>>posters address is still displayed in the X-Trace header.  Is there a
>>simple way to prevent this?  Historical postings seem to suggest
>>modifying the INN source, but I really want to avoid that approach.
> 
> /etc/news/filter/filter_nnrpd.pl:
> 
> #!/usr/bin/perl -wc
> # vim: shiftwidth=4 tabstop=4 autoindent smartindent smarttab
> 
> use strict;
> our (%hdr, $modify_headers, $user);
> 
> sub filter_post {
>     my @delete_headers = qw(NNTP-Posting-Host X-Trace);
> 
>     if ($user eq 'md@newsguests') {
>         push(@delete_headers, qw(Sender X-Complaints-To));
>     }
> 
>     $hdr{$_} = undef foreach @delete_headers;
>     $modify_headers = 1;
>     return '';
> }
> 

Marco,

Many thanks for your reply, my apologies for not responding sooner.

Couple of questions:

I assume this needs to replace the example filter_nnrpd.pl that's in my 
/usr/local/news/bin/filter directory?

Do I need to tell INN in some way to process this file?  I can't see any 
references to it elsewhere within my configuration.

Thanks again










Technical Details
Message-ID: <bh6j6n$5fm$1@bananasplit.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.freenet.de!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.itconsult.net!news.dizum.com!sewer-output!mail2news
References: <bh08nt$7i3$1@bananasplit.info> <bh2mep$cjs$1@wonderland.linux.it>

Show Full Headers
Complete Article Headers
Message-ID: <bh6j6n$5fm$1@bananasplit.info>
Subject: Re: INN 2.4 X-Trace Header
Date: Sun, 10 Aug 2003 23:07:03 +0000
From: Steve <steve@nospam-goofer.co.uk>
References: <bh08nt$7i3$1@bananasplit.info> <bh2mep$cjs$1@wonderland.linux.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.freenet.de!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.itconsult.net!news.dizum.com!sewer-output!mail2news
Newsgroups: news.software.nntp
Organization: Bananasplit
Lines: 43
X-Complaints-To: abuse@bananasplit.info
User-Agent: Xnews/06.02.16
Mail-To-News-Contact: abuse@dizum.com