🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83665

Re: Undefined $user in filter_nnrpd.pl?

#83665
From: Thomas Hochstein
Date: Sun, 14 Nov 2010 18:28
19 lines
1789 bytes
Michael Grimm schrieb:

> But, whenever I access the variable $user in filter_nnrpd.pl's filter_post
> subroutine, I'll end up in:
> ,----
>| nnrpd[123]: Perl function filter_post died: Undefined subroutine &main::filter_post called.
>| nnrpd[123]: SERVER perl filtering disabled
> `----

Strange.

> Whenever I do hardcode a user like ...
> 	my $user = "someone"; 
> ... everything's fine with my code.

Could you show us the relevant parts of your filter_nnrpd.pl,
anonymized as necessary?

-thh
Technical Details
Message-ID: <nsn.1011141928.3607@thorondor.akallabeth.de>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!weretis.net!feeder3.news.weretis.net!news.szaf.org!xerxes.akallabeth.de!not-for-mail
References: <ibosfc$24e$1@de-l.enfer-du-nord.net>

Show Full Headers
Complete Article Headers
Message-ID: <nsn.1011141928.3607@thorondor.akallabeth.de>
Subject: Re: Undefined $user in filter_nnrpd.pl?
Date: Sun, 14 Nov 2010 19:28:15 +0100
From: Thomas Hochstein <thh@inter.net>
References: <ibosfc$24e$1@de-l.enfer-du-nord.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!weretis.net!feeder3.news.weretis.net!news.szaf.org!xerxes.akallabeth.de!not-for-mail
Newsgroups: news.software.nntp
Lines: 19
NNTP-Posting-Host: localhost
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: xerxes.akallabeth.de 1289759305 18780 127.0.0.1 (14 Nov 2010 18:28:25
 GMT)
X-Complaints-To: abuse@akallabeth.de
NNTP-Posting-Date: Sun, 14 Nov 2010 18:28:25 +0000 (UTC)
Cancel-Lock: sha1:KNBygZcvCOiKgUOlP6m/1Wk6KlE=
X-Uptime: 3 day(s), 11 hour(s), 54 minute(s), 11 second(s) [thorondor | 62071]
User-Agent: ForteAgent/2.0-32.652 Hamster/2.1.0.11