Article View: news.software.nntp
Article #79016Re: IP number
From: Ray Banana
Date: Sat, 10 May 2008 15:51
Date: Sat, 10 May 2008 15:51
28 lines
2304 bytes
2304 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)
> 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.
--
Too many ingredients in the soup, no room for a spoon.
http://news.motzarella.org
Technical Details
Message-ID:
<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!t-online.de!feeder.news-service.com!news.motzarella.org!banana.shacknet.nu!motzarella.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>Show Full Headers
Complete Article Headers
Message-ID: <8063tmi2ck.fsf@banana.shacknet.nu> Subject: Re: IP number Date: Sat, 10 May 2008 17:51:55 +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> 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: 28 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: banana.shacknet.nu 1210434756 32778 10.1.30.101 (10 May 2008 15:52:36 GMT) X-Complaints-To: abuse@banana.shacknet.nu User-Agent: Plonkenlights X-Attribution: Ray Banana Cancel-Lock: sha1:0LATP2rAcVe67VoVryd5sGl2Rs4= X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent iQCVAwUBSCXEwxFgDSXFGJ/lAQFKgwP+N1dpv+YMwLKmhtcjEEC3LZhseEb+t7mB EyaCJ8+RSqQg3ts298OCsf8+4Kmk0EBgGELAKlmcATBBWswr8blPA4fNghyP6Rci fXRtjzZfOG3NTr8X4kDfA7fbkWFmr98FxvEgACtIRJ+MLruCowaat9Vij9bAHeOm aFPzaEMF/3g= =PlY/