🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53086

Re: INN: Perl filtering on Subject

#53086
From: Andrew Gierth
Date: Fri, 29 Jun 2001 15:28
22 lines
1861 bytes
>>>>> "matte" == `matte  <fake@address.com> writes:

 matte> Hi, I want enable perl filtering in filter_innd.pl, but I have
 matte> read the documentation, and it says :

 matte> --------------
 matte> The %hdr hash should not be modified inside filter_art().
 matte> Instead, any of the contents need to be modified temporarily
 matte> during filtering (smashing case, for example), copy them into
 matte> a seperate variable first and perform the modifications on the
 matte> copy.  Currently, `$hdr{__BODY__}'
 matte> ---------------			

 matte> I'm not understanding the right way to modify my headers.

It's not possible to modify the actual headers of an article in
filter_innd.pl. Modification of headers of articles in transit is a
definite no-no.

-- 
Andrew.
Technical Details
Message-ID: <87r8w3tidr.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
References: <slrn9jp5g1.5ue.fake@mat.home.xs>

Show Full Headers
Complete Article Headers
Message-ID: <87r8w3tidr.fsf@erlenstar.demon.co.uk>
Subject: Re: INN: Perl filtering on Subject
Date: Fri, 29 Jun 2001 15:28:48 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <slrn9jp5g1.5ue.fake@mat.home.xs>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
Newsgroups: news.software.nntp
Organization: disorganised
Lines: 21
NNTP-Posting-Host: erlenstar.demon.co.uk (15fa:06c0)
X-Mayan-Date: Long count = 12.19.8.6.5; tzolkin = 8 Chicchan; haab = 3 Tzec
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-Attribution: AG
X-P-Persistent-Headers: are a bad idea.
X-Newsreader: Gnus v5.5/Emacs 20.2
X-Complaints-To: andrew@erlenstar.demon.co.uk
X-Post-Filter: postfilter v0.6 alpha