Article View: news.software.nntp
Article #80864Re: filter_nnrpd.pl (maybe a bug)
From: Aioe
Date: Mon, 04 May 2009 07:21
Date: Mon, 04 May 2009 07:21
55 lines
2457 bytes
2457 bytes
Aioe wrote:
> 1. With INN 2.5 and perl 5.10.0, a strange thing happens:
with the following filter_nnrpd.pl:
sub filter_post()
{
$modify_headers = 1;
delete $hdr{'X-Trace'};
return "";
}
this is the result (nnrpd doesn't cancel X-Trace (and only X-Trace)):
# telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 localhost InterNetNews server INN 2.4.5 ready
mode reader
200 localhost InterNetNews NNRP server INN 2.4.5 ready (posting ok).
post
340 Ok, recommended ID <gtm4s7$850$1@aioe-casa.aioe.org>
Newsgroups: local.test
From: a@b.c
Subject: test
amamam
as
..
240 Article posted <gtm4s7$850$1@aioe-casa.aioe.org>
group local.test
211 49 1 49 local.test
head 49
221 49 <gtm4s7$850$1@aioe-casa.aioe.org> head
Path: localhost!not-for-mail
From: a@b.c
Newsgroups: local.test
Subject: test
Date: Mon, 4 May 2009 07:18:48 +0000 (UTC)
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <gtm4s7$850$1@aioe-casa.aioe.org>
NNTP-Posting-Host: localhost.aioe.org
X-Trace: aioe-casa.aioe.org 1241421528 8352 127.0.0.1 (4 May 2009 07:18:48
GMT)
X-Complaints-To: usenet@aioe-casa.aioe.org
NNTP-Posting-Date: Mon, 4 May 2009 07:18:48 +0000 (UTC)
..
quit
205 .
Connection closed by foreign host.
Technical Details
Message-ID:
<gtm52j$r2k$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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!not-for-mailReferences:
<gtm4q0$qtg$1@aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <gtm52j$r2k$1@aioe.org> Subject: Re: filter_nnrpd.pl (maybe a bug) Date: Mon, 04 May 2009 09:21:41 +0200 From: Aioe <estasi@aioe.org> References: <gtm4q0$qtg$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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!not-for-mail Newsgroups: news.software.nntp Followup-To: news.software.nntp Organization: Aioe.org Lines: 56 NNTP-Posting-Host: xwRRMG8EYsZVE1oLf+L+5w.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Mon, 4 May 2009 07:21:55 +0000 (UTC) X-Notice: Filtered by postfilter v. 0.7.8 Cancel-Lock: sha1:xnXibpRQqpi3BBM2eYd1fw4AYfU= User-Agent: KNode/0.99.01