Article View: news.software.nntp
Article #48541Re: INN & cleanfeed
From: Andrew Gierth
Date: Tue, 26 Sep 2000 00:00
Date: Tue, 26 Sep 2000 00:00
26 lines
1663 bytes
1663 bytes
>>>>> "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.
Technical Details
Message-ID:
<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-mailReferences:
<8qr5to$hk9$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
Message-ID: <87g0mm7pw5.fsf@erlenstar.demon.co.uk> Subject: Re: INN & cleanfeed Date: Tue, 26 Sep 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <8qr5to$hk9$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-mail X-Deja-AN: 674478383 X-Mayan-Date: Long count = 12.19.7.10.9; tzolkin = 5 Muluc; haab = 12 Chen X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha