🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #42512

possible bug in INN 2.2.1 perl filtering (filter_nnrpd.pl)

#42512
From: Sven Gottwald
Date: Sat, 25 Dec 1999 00:00
49 lines
1916 bytes
Hohoho!

I'm using INN 2.2.1 on my Linux-box as local newsserver and tried to use

---SNIP---
sub filter_post {
	$modify_headers = 1;
	$hdr{"X-Trace"} = "";
}
---SNAP---  

in filter_nnrpd.pl to remove the X-Trace header (I didn't want to
modify the source). But with that modification the header of a test
posting to a local group looks like that:

| Path: sauron.ddns.org!svengo
| From: Sven Gottwald <svengo@gmx.net>
| Newsgroups: local.test
| Subject: Test (hopefully) without X-Trace
| Date: 25 Dec 1999 19:46:55 GMT
| Organization: United Federation of Planets
| Lines: 5
| Message-ID: <slrn86a7pf.19p.svengo@sauron.ddns.org>
| NNTP-Posting-Host: localhost
| X-Complaints-To: usenet@sauron.ddns.org
| NNTP-Posting-Date: 25 Dec 1999 19:46:55 GMT
| X-No-Archive:  yes
               ^^
| Mail-Copies-To:  never
                 ^^
| User-Agent:  slrn/0.9.6.1 (Linux)
             ^^
| Xref: sauron.ddns.org local.test:60

The same (of course /with/ a X-Trace Header ;-) happens if I only use 

---SNIP---
sub filter_post {
	$modify_headers = 1;
 	"";
}
---SNAP---

Does anyone have the same problem? (btw I'm using perl 5.005_03.)

TIA
   Sv'Sorry for my not so good English'en

Technical Details
Message-ID: <slrn86a9tb.1bd.svengo@sauron.ddns.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.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn86a9tb.1bd.svengo@sauron.ddns.org>
Subject: possible bug in INN 2.2.1 perl filtering (filter_nnrpd.pl)
Date: Sat, 25 Dec 1999 00:00:00 +0000
From: Sven Gottwald <svengo@gmx.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 564847827
Supersedes: <slrn86a9qv.1bd.svengo@sauron.ddns.org>
X-Trace: fu-berlin.de 946153681 428018 62.180.33.28 (16 [15083])
Organization: United Federation of Planets
User-Agent: slrn/0.9.6.1 (Linux)
Newsgroups: news.software.nntp