🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Russ Allbery Tue, 23 Sep 1997 00:00
INN 1.5.1: Modify headers of posts from Perl hook?
#21828
Author: Russ Allbery
Date: Tue, 23 Sep 1997 00:00
16 lines
1180 bytes
Can the filter_post() Perl sub modify the %hdr hash and get the expected
results (ie, actually be able to rewrite the headers of the post)?  If
not, how difficult would it be to do this?  I need this for something I'm
working on.

I'm not sure if newSVpv() creates a two way mapping or just loads a Perl
scalar which then has no association with the original string.  If it's
the latter, I believe perl.c in nnrpd would have to be modified to read
the hash back out and replace the headers of the article with the values
obtained from Perl.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN 1.5.1: Modify headers of posts from Perl hook?
#22250
Author: Matus Uhlar
Date: Fri, 10 Oct 1997 00:00
12 lines
1187 bytes
> Thanks for the several e-mail replies I got to this -- unfortunately, the
> answer is no, the Perl filter in INN can't modify headers.  They're
> read-only.  Which means I'll need to do this a different way.

why do you want to do that ? 
--
 Matus "fantomas" Uhlar, sysadmin of one server at SANET Kosice, Slovakia
 E-mail: Matus.Uhlar@tuke.sk ; WWW: http://ccsun.tuke.sk/users/uhlar
 And don't forget: I work for SANET, but talk for myself, dude... ;-)

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads