Article View: news.software.nntp
Article #92399Re: INN laxmid clarification
From: Julien ÉLIE
Date: Tue, 02 Sep 2025 18:59
Date: Tue, 02 Sep 2025 18:59
29 lines
2943 bytes
2943 bytes
Hi Jesse,
> Would it be possible through filter_innd.pl to take the value of X-Google-
> ArrivalTime and replace the Date header with that value?
>
> Also, I'm trying to strip the X-Google-Attributes and X-Google-Thread
> headers from all articles, but cannot get it to work. I've added these
> header values in innd/innd.c, so they are available to $hdr, but can't
> seem to unset them, or I'm not doing it in a way that work with the rest
> of cleanfeed. The basic code works to unset headers when a user posts
> through filter_nnrpd.pl, but doesn't seem to in filter_innd.pl?
Unfortunately, filter_innd.pl does not permit to modify articles. They
are read-only in the filter, contrary to the nnrpd Perl hook.
https://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html
"The %hdr hash should not be modified inside filter_art(). Currently,
$hdr{__BODY__} is the only data that will cause your filter to die if
you modify it, but in the future other keys may also contain live data.
Modifying live INN data in Perl will hopefully only cause a fatal
exception in your Perl code that disables Perl filtering until you fix
it, but it's possible for it to cause article munging or even core dumps
in INN. So always, always make a copy first."
--
Julien ÉLIE
« Quo vadis ? » (saint Jean)
Technical Details
Message-ID:
<1097eqf$17q4n$2@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:1801:68e6:5d9d:3b85!not-for-mailReferences:
<u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com> <10906hu$2tvn$1@nnrp.usenet.blueworldhosting.com> <10910cj$12r8f$1@news.trigofacile.com> <87bjnv4ait.fsf@hope.eyrie.org> <10928if$3djku$1@dont-email.me> <1092n83$2c6e$1@nnrp.usenet.blueworldhosting.com> <1094pjt$15nu2$1@news.trigofacile.com> <1095tr8$2mb9$1@nnrp.usenet.blueworldhosting.com> <87bjnsvhf6.fsf@hope.eyrie.org> <1097dql$pj0$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <1097eqf$17q4n$2@news.trigofacile.com> Subject: Re: INN laxmid clarification Date: Tue, 2 Sep 2025 20:59:27 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com> <10906hu$2tvn$1@nnrp.usenet.blueworldhosting.com> <10910cj$12r8f$1@news.trigofacile.com> <87bjnv4ait.fsf@hope.eyrie.org> <10928if$3djku$1@dont-email.me> <1092n83$2c6e$1@nnrp.usenet.blueworldhosting.com> <1094pjt$15nu2$1@news.trigofacile.com> <1095tr8$2mb9$1@nnrp.usenet.blueworldhosting.com> <87bjnsvhf6.fsf@hope.eyrie.org> <1097dql$pj0$1@nnrp.usenet.blueworldhosting.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:1801:68e6:5d9d:3b85!not-for-mail Newsgroups: news.software.nntp Organization: Groupes francophones par TrigoFACILE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 2 Sep 2025 18:59:27 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2001:861:3f81:7990:1801:68e6:5d9d:3b85"; logging-data="1304727"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:/vNGpV5R8vyBxomsYnwE7rwM0BM= sha256:oDXQOshyscuSwVb6S8RJoNdYW+lp+tkYjeC7yrW05g0= In-Reply-To: <1097dql$pj0$1@nnrp.usenet.blueworldhosting.com>