Article View: news.software.nntp
Article #79017Re: IP number
From: kjell
Date: Sat, 10 May 2008 18:04
Date: Sat, 10 May 2008 18:04
27 lines
2001 bytes
2001 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)
>> The perl filter is enabled!
>
> 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!
Technical Details
Message-ID:
<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!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!aioe.org!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <g04o3i$d7o$1@aioe.org> Subject: Re: IP number Date: Sat, 10 May 2008 20:04:33 +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> 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!newsfeed.straub-nv.de!aioe.org!not-for-mail Newsgroups: news.software.nntp Organization: Aioe.org NNTP Server Lines: 27 NNTP-Posting-Host: DpQ8QBot/hb0M+nDiBOclg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Thunderbird 2.0.0.12 (X11/20080227)