Article View: news.software.nntp
Article #80863filter_nnrpd.pl (maybe a bug)
From: Aioe
Date: Mon, 04 May 2009 07:17
Date: Mon, 04 May 2009 07:17
45 lines
2103 bytes
2103 bytes
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'};
}
this is the result:
# 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 <gtm3v9$6ta$1@aioe-casa.aioe.org>
Newsgroups: local.test
From: a@b.c
Subject: test
amamam
as
..
441 aioe-casa.aioe.org 1241420592 7082 127.0.0.1 (4 May 2009 07:03:12 GMT)
quit
205 .
Connection closed by foreign host.
2. filter_nnrpd.pl should be able to detect which program is invoking it;
some user is making confusion between filter_nnrpd.pl and filter_innd.pl and
each script currently is *not* able to detect whether it is invoked by the
/right/ program. At the same time - imho - pathfilter should be reorganized
with separate directories for each program (like this:
/etc/news/filter/innd/filter_innd.pl
/etc/news/filter/nnrpd/filter_nnrpd.pl
...
Technical Details
Message-ID:
<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!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gtm4q0$qtg$1@aioe.org> Subject: filter_nnrpd.pl (maybe a bug) Date: Mon, 04 May 2009 09:17:06 +0200 From: Aioe <estasi@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!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail Newsgroups: news.software.nntp Followup-To: news.software.nntp Organization: Aioe.org Lines: 45 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:17:20 +0000 (UTC) X-Notice: Filtered by postfilter v. 0.7.8 Cancel-Lock: sha1:c5H4VsHmevzqN4JTxwNJ2kmK+AI= User-Agent: KNode/0.99.01