🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84942

Perl filter - attributes hash

#84942
From: Steve Crook
Date: Thu, 21 Jun 2012 13:28
13 lines
1525 bytes
Hi all,

If I'm reading nnrpd/perl.c correctly, it looks as though the attributes
hash is created for Perl Auth and Access functions.  Is there any reason
why the same hash cannot be created for filter_nnrpd.pl purposes?

My incentive for looking at this was that currently there doesn't appear
to be an easy way to interrogate the client IP Address from within
filter_nnrpd.pl.  The hostname may exist in the hdr hash
(in NNTP-Posting-Host or Injection-Info) but it seems a lot of work to
resolve this back to an address when the client ip must already be known.

Steve
Technical Details
Message-ID: <slrnju68be.dtg.steve@snorky.mixmin.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.erje.net!news.mixmin.net!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnju68be.dtg.steve@snorky.mixmin.net>
Subject: Perl filter - attributes hash
Date: Thu, 21 Jun 2012 13:28:14 +0000
From: Steve Crook <steve@mixmin.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.erje.net!news.mixmin.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Thu, 21 Jun 2012 13:28:14 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="5b9uhq3pbnn88O1nJo9XPyTmJdY";
 logging-data="1988"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-40 (Linux)
Lines: 12
X-Original-Bytes: 1183