🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79018

Re: IP number

#79018
From: Ray Banana
Date: Sat, 10 May 2008 18:36
34 lines
2540 bytes
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'} = '';

-- 
Too many ingredients in the soup, no room for a spoon.
http://news.motzarella.org
Technical Details
Message-ID: <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!t-online.de!feeder.news-service.com!news.motzarella.org!banana.shacknet.nu!motzarella.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>

Show Full Headers
Complete Article Headers
Message-ID: <80fxsqgg58.fsf@banana.shacknet.nu>
Subject: Re: IP number
Date: Sat, 10 May 2008 20:36:51 +0200
From: Ray Banana <rayban@banana.shacknet.nu>
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>
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!t-online.de!feeder.news-service.com!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient spider
Lines: 34
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: banana.shacknet.nu 1210444657 51229 10.1.30.101 (10 May 2008 18:37:37
 GMT)
X-Complaints-To: abuse@banana.shacknet.nu
User-Agent: Plonkenlights
X-Attribution: Ray Banana
Cancel-Lock: sha1:t4mPx9GD8I7HX+5ZwKRKIvgGlgE=
X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent
 iQCVAwUBSCXrcRFgDSXFGJ/lAQEVgQQAqgJ66Jj7j+SLu8ZNx2Qvcn7xrF8YAj5v
 4bu/PQjMgf2b00xE8AwfvS+tZ3qSox0xSCRG8J4n/hklO5HQhBrsdTCzrrzYeMiR
 XZXKHjUYqX8gll2to5jny/F4n3l9REojLJLu18JZ8Xdl6U54Cq3xOjbpCvRxmmxw
 B+8tAZYuL/w= =jTjB