Article View: news.software.nntp
Article #80903Re: filter_nnrpd.pl (maybe a bug)
From: Julien ÉLIE
Date: Tue, 05 May 2009 18:30
Date: Tue, 05 May 2009 18:30
38 lines
2583 bytes
2583 bytes
Hi Paolo,
> this should be added inside the perl filter documentation or removed. It's a
> really strange behaviour under the perl programmer's point of view.
Modified: hook-perl.pod
===================================================================
--- hook-perl.pod 2009-05-04 19:11:52 UTC (rev 8442)
+++ hook-perl.pod 2009-05-04 19:18:50 UTC (rev 8443)
@@ -336,6 +336,21 @@
then be rejected by innd). If $modify_headers is set, I<everything> in
the %hdr hash is taken to be article headers and added to the article.
+To modify the contents of the Organization: header, you can use:
+
+ $hdr{'Organization'} = 'My new organization';
+ $modify_headers = 1;
+
+To delete the Organization: header, you can use:
+
+ $hdr{'Organization'} = undef;
+ $modify_headers = 1;
+
+or:
+
+ $hdr{'Organization'} = '';
+ $modify_headers = 1;
+
If filter_post() returns something other than the empty string, this
message is normally returned to the client as an error. There are three
exceptions:
--
Julien ÉLIE
« Il y a des sciences bonnes dont l'existence est nécessaire
et dont la culture est inutile. Telles sont les mathématiques. » (Joseph Joubert)
Technical Details
Message-ID:
<gtq0p9$a7j$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<gtm4q0$qtg$1@aioe.org> <gtm52j$r2k$1@aioe.org> <gtm6i9$eiq$1@tioat.net> <gtmvc6$k9a$1@aioe.org> <gtneib$eh4$1@news.trigofacile.com> <gtnioo$8ju$2@aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <gtq0p9$a7j$1@news.trigofacile.com> Subject: Re: filter_nnrpd.pl (maybe a bug) Date: Tue, 5 May 2009 20:30:43 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gtm4q0$qtg$1@aioe.org> <gtm52j$r2k$1@aioe.org> <gtm6i9$eiq$1@tioat.net> <gtmvc6$k9a$1@aioe.org> <gtneib$eh4$1@news.trigofacile.com> <gtnioo$8ju$2@aioe.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 38 NNTP-Posting-Host: aaubervilliers-151-1-58-234.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1241548393 10483 83.112.31.234 (5 May 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Tue, 5 May 2009 18:33:13 +0000 (UTC) In-Reply-To: <gtnioo$8ju$2@aioe.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049