ossp-pkg/lmtp2nntp/example.conf 1.15 -> 1.16
--- example.conf 2002/01/31 15:54:53 1.15
+++ example.conf 2002/03/04 15:54:28 1.16
@@ -53,3 +53,25 @@
version #see -v aka --version
newsgroup "test"
newsgroup "alt.test" #see man page for information about newsgroup
+
+
+ ### CRUCIAL GATEWAY HEADER REWRITE RULES ###
+
+# merge values from duplicate headers and separte them with "comma space"
+headerrule 500:(Reply-To|To|Cc|Bcc):$0: [%{$0[#]}%{$0[#+1]:+, }]
+
+# keep only first value from duplicate headers
+headerrule 510:(X-Firstonly):$0: %{$0[0]}
+
+# replace empty Subject with text "None"
+headerrule 520:Subject: %{$Subject:-None}
+
+# create Message-ID if omitted or illegal (<> single @)
+headerrule 530:Messageid: %{messagid:s/^([^@+@[^@]+)$/<$1/:s/^[^<].*$/%{tool.createmessageid}/}
+
+# append a header
+headerrule 540::X-Append: Tail
+
+# remove a header (empty value)
+headerrule 550::X-Delete:
+
|
|