Article View: news.software.nntp
Article #48540Re: INN & cleanfeed
From: armedlemming
Date: Tue, 26 Sep 2000 00:00
Date: Tue, 26 Sep 2000 00:00
38 lines
1948 bytes
1948 bytes
Thanks for the response!
(off topic - Bad day for ManU, but good one for Leeds eh?)
In article <87g0mm7pw5.fsf@erlenstar.demon.co.uk>,
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> >>>>> "armedlemming" == armedlemming <armedlemming@yahoo.com> writes:
>
> armedlemming> Hello all,
> armedlemming> I've got my INNd server running now, but the cleanfeed
> armedlemming> PERL filter is erroring out on me. Here's the message
> armedlemming> from the log:
>
> armedlemming> Sep 26 11:55:08 jupiter innd: Perl function filter_art
> armedlemming> died: Modification of a read-only value attempted at
> armedlemming> /usr/local/news/bin/filter/filter_innd.pl line 572.
>
> Newer versions of INN changed the way that the article was passed
> to the Perl filter, avoiding a memory copy but resulting in the
> body being passed as a read-only value.
>
> armedlemming> # count the lines in the article
> armedlemming> $lines = $hdr{'__BODY__'} =~ tr/\n/\n/;
>
> change this to
>
> $lines = $hdr{'__LINES__'};
>
> --
> Andrew.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
Technical Details
Message-ID:
<8qrd31$na8$1@nnrp1.deja.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.mbox.zip!not-for-mailReferences:
<8qr5to$hk9$1@nnrp1.deja.com> <87g0mm7pw5.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <8qrd31$na8$1@nnrp1.deja.com> Subject: Re: INN & cleanfeed Date: Tue, 26 Sep 2000 00:00:00 +0000 From: armedlemming@yahoo.com References: <8qr5to$hk9$1@nnrp1.deja.com> <87g0mm7pw5.fsf@erlenstar.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 674496948 X-Http-Proxy: 1.0 case500, 1.0 x61.deja.com:80 (Squid/1.1.22) for client 10.3.1.103, 12.46.129.6 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Sep 26 23:56:20 2000 GMT X-MyDeja-Info: XMYDJUIDarmedlemming Newsgroups: news.software.nntp X-Http-User-Agent: Mozilla/4.75 [en] (Windows NT 5.0; U)