Article View: news.software.nntp
Article #93063Re: RFC 8315 perl hooks for Inn (was: Re: Systems running news servers)
From: Thomas Hochstein
Date: Sun, 23 Aug 2026 13:12
Date: Sun, 23 Aug 2026 13:12
46 lines
3810 bytes
3810 bytes
Julien ÉLIE wrote on 2021-02-08, quoting Gérald Niel: >>> https://code.th-h.de/?p=usenet/INN.git;a=tree;f=filter >> >> I think I've succeffuly rewrited those hooks to be RFC 8315 compliant. >> >> If that works and looks good, tell me how to (and where) submit these. > > As Thomas reads this newsgroup, just provide a link to your patch. > Thanks for it! Thanks again to Gérald! I've now (some years later ...) updated my code. (Currently here: <https://code.virtcomm.de/thh/INN-config/>) For INN 2.7.0 and newer, those changes to filter_innd.pl or cleanfeed.local are now obsolote as INN has native support for Cancel-Lock/-Key, if compiled accordingly. For older versions, the code may still be of value. You may still need the code in filter_nnrpd.pl if you change the Message-ID in this filter. Yes, you should never change a Message-ID, even in a posting filter, but you may want to under special cirumstances. I do that in my local installation, triggered only for my own client, to generate more "meaningful" Message-IDs. If you change Message-IDs in filter_nnrpd.pl, you have to replace submitted Cancel-Lock/-Key headers, too, because they are generated by INN (or a newsreader) before filter_nnrpd.pl is run. Due to those special circumstances, my filter_nnrpd.pl implementation can now either add news hashes to existing Cancel-Lock/-Key headers or completely replace the current headers. You can also choose how many and what hashes to use (sha1, sha256 and/or sha521). For INN 2.7.0 and onwards, the code will get the secrets from inn-secrets.conf; for older versions, you have to supply the secret in code, as usual. So, both filter_nnrpd.pl and cleanfeed.local will work for older versions of INN (or if you don't want to use the native support [1]), and filter_nnrpd.pl will work with INN 2.7 to replace Cancel-Lock/-Key headers if you're already messing with Message-IDs in filter_nnrpd.pl. [1] You will need an inn-secrets.conf file for INN 2.7.0 and newer. -thh
Technical Details
Message-ID:
<nsn.20260823151203.907@scatha.ancalagon.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!angband.ancalagon.de!.POSTED.scatha.ancalagon.de!not-for-mailReferences:
<rufd7o$6ud$1@dont-email.me> <slrns0nh0v.hh9.gerald.niel+spam@news.gegeweb.org> <AABgDBR4nnEAAAQH.A1.flnews@Server4.micha.freeshell.org> <slrns0qcf0.3c0.gerald.niel+spam@news.gegeweb.org> <rujevf$7hs$1@pasdenom.info> <slrns0qgep.47g.gerald.niel+spam@news.gegeweb.org> <ruk3dr$2hf$1@news.trigofacile.com> <slrns0vtnm.nbf.gerald.niel+spam@news.gegeweb.org> <ruov85$a2f$1@news.trigofacile.com> <slrns21rbm.1jhv.gerald.niel+spam@home.niel.me> <rvsbd0$85q$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!angband.ancalagon.de!.POSTED.scatha.ancalagon.de!not-for-mail
From: Thomas Hochstein <thh@thh.name>
Newsgroups: news.software.nntp
Subject: Re: RFC 8315 perl hooks for Inn (was: Re: Systems running news servers)
Date: Sun, 23 Aug 2026 15:12:05 +0200
Message-ID: <nsn.20260823151203.907@scatha.ancalagon.de>
References: <rufd7o$6ud$1@dont-email.me> <slrns0nh0v.hh9.gerald.niel+spam@news.gegeweb.org> <AABgDBR4nnEAAAQH.A1.flnews@Server4.micha.freeshell.org> <slrns0qcf0.3c0.gerald.niel+spam@news.gegeweb.org> <rujevf$7hs$1@pasdenom.info> <slrns0qgep.47g.gerald.niel+spam@news.gegeweb.org> <ruk3dr$2hf$1@news.trigofacile.com> <slrns0vtnm.nbf.gerald.niel+spam@news.gegeweb.org> <ruov85$a2f$1@news.trigofacile.com> <slrns21rbm.1jhv.gerald.niel+spam@home.niel.me> <rvsbd0$85q$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: angband.ancalagon.de; posting-account="thh@users.ancalagon.de"; posting-host="scatha.ancalagon.de:10.0.1.1";
logging-data="356629"; mail-complaints-to="abuse@ancalagon.de"
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:Gi6PmQ1ga7IRpYCnnYGWONataso= sha256:z734wdd56T1QKWlAXM2ym0Y+yl4kHHw2NwyeR4uaAf4=
sha1:05yUly1DGCCnL4H3NtKX1GI0Y3g= sha256:lF6AIskG98sL4JnTBSbD6izdI+iSBJmzpGPrp77RY6U=
X-Face: *OX>R5kq$7DjZ`^-[<HL?'n9%\ZDfCz/_FfV0_tpx7w{Vv1*byr`TC\[hV:!SJosK'1gA>1t8&@'PZ-tSFT*=<}JJ0nXs{WP<@(=U!'bOMMOH&Q0}/(W_d(FTA62<r"l)J\)9ERQ9?6|_7T~ZV2Op*UH"2+1f9[va
X-Clacks-Overhead: GNU Terry Pratchett
X-NNTP-Posting-Date: Sun, 23 Aug 2026 15:12:03 +0200