🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57599

Re: [inn2] Can I overrid the "Date" in header?

#57599
From: Jeffrey M. Vinocur
Date: Sun, 24 Mar 2002 18:15
24 lines
1768 bytes
In article <a7l1on$c0f$1@justice.csc.cuhk.edu.hk>,
Johnson Lau <johnson@siukeung.com> wrote:
>
> [ nnrpd posting filter ]
>
>it seems that the filter only rejects unwanted articles,
>but is not able to change the content,
>am i correct?

From README.perl_hook:

    Unlike the innd Perl filter, the nnrpd Perl filter can modify the %hdr
    hash.  In fact, if the Perl variable $modify_headers is set to true
    after filter_post() returns, the contents of the %hdr hash will be
    written back to the article replacing the original headers.

But please see the other comments in this thread and make sure
this is really what you need to do.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <a7l535$22i$1@marduk.litech.org>
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!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
References: <a7kl6g$mtt$1@justice.csc.cuhk.edu.hk> <a7ktm3$to3$1@marduk.litech.org> <a7l1on$c0f$1@justice.csc.cuhk.edu.hk>

Show Full Headers
Complete Article Headers
Message-ID: <a7l535$22i$1@marduk.litech.org>
Subject: Re: [inn2] Can I overrid the "Date" in header?
Date: Sun, 24 Mar 2002 18:15:01 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <a7kl6g$mtt$1@justice.csc.cuhk.edu.hk> <a7ktm3$to3$1@marduk.litech.org> <a7l1on$c0f$1@justice.csc.cuhk.edu.hk>
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!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 23
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 1016993701 2130 128.84.154.54 (24 Mar 2002 18:15:01 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sun, 24 Mar 2002 18:15:01 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)