INN commit: trunk/doc/pod (hook-perl.pod)
INN Commit
Russ_Allbery at isc.org
Mon May 4 19:18:50 UTC 2009
Date: Monday, May 4, 2009 @ 12:18:50
Author: iulius
Revision: 8443
Explain how to remove a header with the Perl nnrpd filter hook.
Modified:
trunk/doc/pod/hook-perl.pod
---------------+
hook-perl.pod | 15 +++++++++++++++
1 file changed, 15 insertions(+)
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:
More information about the inn-committers
mailing list