🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83668

Re: Undefined $user in filter_nnrpd.pl?

#83668
From: Michael Grimm
Date: Sun, 14 Nov 2010 20:33
28 lines
2006 bytes
Thomas Hochstein <thh@inter.net> wrote:
> 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?

A simple ...
	INN::syslog('notice',$user);
... at the end of filter_post will trigger that error message. Whenever
I define a global $user variable as mentioned above, everything's fine.

Regards,
Michael
-- 
to let
Technical Details
Message-ID: <ibph2a$1ejh$2@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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!reader.enfer-du-nord.net!.POSTED!not-for-mail
References: <ibosfc$24e$1@de-l.enfer-du-nord.net> <nsn.1011141928.3607@thorondor.akallabeth.de>

Show Full Headers
Complete Article Headers
Message-ID: <ibph2a$1ejh$2@de-l.enfer-du-nord.net>
Subject: Re: Undefined $user in filter_nnrpd.pl?
Date: Sun, 14 Nov 2010 20:33:14 +0000
From: Michael Grimm <trashcan@odo.in-berlin.de>
References: <ibosfc$24e$1@de-l.enfer-du-nord.net> <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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!reader.enfer-du-nord.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: ATK - Alternative Tierklinik links der Einfalt
Injection-Info: reader.enfer-du-nord.net;
 posting-host="U2FsdGVkX1+iy+a+DqZryuBGFtmhnzFF5s+v6Ew/N0g=";
 mail-complaints-to="abuse@enfer-du-nord.net"
User-Agent: slrn/pre1.0.0-15/mm/ao (Darwin)
Cancel-Lock: sha1:uwZQoWCTB9Thv4yUem4+UD5l4Mo=
 sha1:yCy2ulo285uWOcogrSYQqrGnTKg=
Mail-Copies-To: nobody
Lines: 27
X-Original-Bytes: 1748