Article View: news.software.nntp
Article #83672Re: Undefined $user in filter_nnrpd.pl?
From: Thomas Hochstein
Date: Mon, 15 Nov 2010 07:51
Date: Mon, 15 Nov 2010 07:51
28 lines
2200 bytes
2200 bytes
Michael Grimm schrieb:
> 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.
To elaborate on that: even an undefinied $user shouldn't lead to
&filter_post being undefined!
>> Could you show us the relevant parts of your filter_nnrpd.pl,
>> anonymized as necessary?
So that was the reason for my request.
> 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.
It doesn't here, and it shouldn't. :)
-thh
Technical Details
Message-ID:
<nsn.1011150851.3613@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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.szaf.org!xerxes.akallabeth.de!not-for-mailReferences:
<ibosfc$24e$1@de-l.enfer-du-nord.net> <nsn.1011141928.3607@thorondor.akallabeth.de> <ibph2a$1ejh$2@de-l.enfer-du-nord.net>Show Full Headers
Complete Article Headers
Message-ID: <nsn.1011150851.3613@thorondor.akallabeth.de> Subject: Re: Undefined $user in filter_nnrpd.pl? Date: Mon, 15 Nov 2010 08:51:33 +0100 From: Thomas Hochstein <thh@inter.net> References: <ibosfc$24e$1@de-l.enfer-du-nord.net> <nsn.1011141928.3607@thorondor.akallabeth.de> <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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.szaf.org!xerxes.akallabeth.de!not-for-mail Newsgroups: news.software.nntp Lines: 28 NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: xerxes.akallabeth.de 1289808172 5309 127.0.0.1 (15 Nov 2010 08:02:52 GMT) X-Complaints-To: abuse@akallabeth.de NNTP-Posting-Date: Mon, 15 Nov 2010 08:02:52 +0000 (UTC) Cancel-Lock: sha1:lKb5nqmWFEFm0dxD5UDi1f3my7g= X-Uptime: 4 day(s), 1 hour(s), 17 minute(s), 30 second(s) [thorondor | 62077] User-Agent: ForteAgent/2.0-32.652 Hamster/2.1.0.11 X-Original-Bytes: 1976