Article View: news.software.nntp
Article #82301Re: nnrpd 2.5 and perl filters
From: Oleksandr Samoylyk
Date: Thu, 03 Dec 2009 19:57
Date: Thu, 03 Dec 2009 19:57
38 lines
2415 bytes
2415 bytes
On 12/3/2009 7:49 PM, Julien ΓLIE wrote:: > Hi Paolo, > >>> and removed: >>> >>> use INN::syslog; >>> >>> in postfilter.pl and *.pm using it. >>> >>> Does it work for you? >> >> yes >> why 'use INN::syslog' is now a problem? even if it's a built in >> module, it >> should be explicitly invoked. Are this wrong? > > INN::syslog is not shipped with INN. > > http://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html#S5 > > The following additional function is available from inside filters > embedded in innd, and is also available from filters embedded in nnrpd > (see below): > INN::syslog(level, message) > > No need to explicitly "use" it. It is already embedded when the Perl > filter is used by the C code. I can confirm it with 2.4.6. It works well without importing INN::syslog by "use" function. Moreover, the presence of shebang line actually affects nothing in this case. So, as I understand, Paolo don't need to have "use INN::syslog;" at all in future releases of postfilter. :) -- Oleksandr Samoylyk OVS-RIPE
Technical Details
Message-ID:
<hf9575$gj8$5@news.telesweet.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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.telesweet.net!not-for-mailReferences:
<hf56lc$a1f$1@aioe.org> <hf69hq$p25$1@news.trigofacile.com> <hf6ns5$94v$1@aioe.org> <hf6pma$93d$2@news.trigofacile.com> <hf8bmt$2sm$1@aioe.org> <hf8tn1$a5r$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hf9575$gj8$5@news.telesweet.net> Subject: Re: nnrpd 2.5 and perl filters Date: Thu, 03 Dec 2009 21:57:26 +0200 From: Oleksandr Samoylyk <oleksandr@samoylyk.DOT.net> References: <hf56lc$a1f$1@aioe.org> <hf69hq$p25$1@news.trigofacile.com> <hf6ns5$94v$1@aioe.org> <hf6pma$93d$2@news.trigofacile.com> <hf8bmt$2sm$1@aioe.org> <hf8tn1$a5r$1@news.trigofacile.com> 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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.telesweet.net!not-for-mail Newsgroups: news.software.nntp Organization: Telesweet ISP - http://www.telesweet.net/ Lines: 38 NNTP-Posting-Host: 10-0-14-191.telesweet.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.telesweet.net 1259870245 17000 10.0.14.191 (3 Dec 2009 19:57:25 GMT) X-Complaints-To: newsmaster@telesweet.net NNTP-Posting-Date: Thu, 3 Dec 2009 19:57:25 +0000 (UTC) X-Notice: Filtered by postfilter Cancel-Lock: sha1:EDiaJiMBXF4oAzhEMc8iCrzt1Nc= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-Original-Bytes: 2188