🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79024

Re: IP number

#79024
From: kjell
Date: Sat, 10 May 2008 20:36
44 lines
2553 bytes
Ray Banana skrev:
> Thus spake kjell <hd@ipbo.se>
>  
>>>>>>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>>>>>>> Using Inn 2.4.4
>>>>>> sub filter_post {
>>>>>>         $modify_headers = 1;
>>>>>>         delete $hdr{'X-Trace'};
>>>>>>         return '';
>>>>>>     }
>>>>>> but I get this:
>>>>>> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
>>>>>> 12:56:43 GMT)
>>> OK. In filter_nnrpd.pl you have access to a copy of the headers, not the
>>> actual headers. If you set  $modify_headers to true and modify a header,
>>> the modified header will replace the header in the article. So don't
>>> remove the element from the hash, but replace its content:
>>> $hdr{'X-Trace'} = '';
>>> As the header *value* is now null, it will be removed after
>>> filter_nnrpd.pl returns.
>> Sorry, I don't understand, so please write what to put
>> in the filter_nnrpd.pl!
> 
> Hmm. OK:
> Instead of 
> 
> | delete $hdr{'X-Trace'};
> 
> use 
> 
> | $hdr{'X-Trace'} = '';
> 
Thanks!
And how about NNTP-Posting-Host?
Is this the entry?: $hdr{'NNTP-Posting-Host'} = '';

Is this ok?

sub filter_post {
          $modify_headers = 1;
          $hdr{'X-Trace'} = '';
	 $hdr{'NNTP-Posting-Host'} = '';
          return '';
	}
Technical Details
Message-ID: <g0510g$j4d$1@ubuntu1.ipbo.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.warnet.at!open-news-network.org!just2write2.myftp.org!not-for-mail
References: <g043er$vre$1@aioe.org> <80skwq9wld.fsf@banana.shacknet.nu> <g04781$eju$1@aioe.org> <80k5i29rtx.fsf@banana.shacknet.nu> <g04ec8$9g3$1@aioe.org> <8063tmi2ck.fsf@banana.shacknet.nu> <g04o3i$d7o$1@aioe.org> <80fxsqgg58.fsf@banana.shacknet.nu>

Show Full Headers
Complete Article Headers
Message-ID: <g0510g$j4d$1@ubuntu1.ipbo.se>
Subject: Re: IP number
Date: Sat, 10 May 2008 22:36:29 +0200
From: kjell <hd@ipbo.se>
References: <g043er$vre$1@aioe.org> <80skwq9wld.fsf@banana.shacknet.nu> <g04781$eju$1@aioe.org> <80k5i29rtx.fsf@banana.shacknet.nu> <g04ec8$9g3$1@aioe.org> <8063tmi2ck.fsf@banana.shacknet.nu> <g04o3i$d7o$1@aioe.org> <80fxsqgg58.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.warnet.at!open-news-network.org!just2write2.myftp.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Videokopiering
Lines: 44
NNTP-Posting-Host: ubuntu1.ipbo.se
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: hd@ipbo.se
NNTP-Posting-Date: Sat, 10 May 2008 20:36:32 +0000 (UTC)
In-Reply-To: <80fxsqgg58.fsf@banana.shacknet.nu>
User-Agent: Thunderbird 2.0.0.12 (X11/20080227)