Article View: news.software.nntp
Article #21828INN 1.5.1: Modify headers of posts from Perl hook?
From: Russ Allbery
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
16 lines
1180 bytes
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/>
Technical Details
Message-ID:
<m3zpp4fdm1.fsf@windlord.Stanford.EDU>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-mailShow Full Headers
Complete Article Headers
Message-ID: <m3zpp4fdm1.fsf@windlord.Stanford.EDU> Subject: INN 1.5.1: Modify headers of posts from Perl hook? Date: Tue, 23 Sep 1997 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> 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: 274798451 Sender: eagle@windlord.Stanford.EDU Organization: The Eyrie Newsgroups: news.software.nntp