From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id CDD6E1F4B4 for ; Mon, 1 Feb 2021 13:26:32 +0000 (UTC) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6ZDr-0008Qz-EA; Mon, 01 Feb 2021 14:26:31 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1l6ZDq-00075k-QF; Mon, 01 Feb 2021 14:26:30 +0100 Date: Mon, 1 Feb 2021 14:26:30 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Eric Wong Cc: meta@public-inbox.org, Konstantin Ryabitsev Subject: Re: generic message-id redirector Message-ID: <20210201132630.y53ydk4w6o7fyrzp@pengutronix.de> References: <20210201104115.mconuob33y3exr2u@pengutronix.de> <20210201111049.GA9584@dcvr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4om4i6lhxjbhs4w6" Content-Disposition: inline In-Reply-To: <20210201111049.GA9584@dcvr> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: meta@public-inbox.org List-Id: --4om4i6lhxjbhs4w6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, [adding Konstantin to Cc:] On Mon, Feb 01, 2021 at 11:10:49AM +0000, Eric Wong wrote: > Uwe Kleine-K=F6nig wrote: > > I'm currently trying to get up a public-inbox instance and I fail to > > setup a generic message-id redirector as lore.kernel.org implements it. > > That is a request to https://lore.kernel.org/r/message@id is redirected > > to https://lore.kernel.org/somelist/message@id for a list "somelist" > > that has a message with the given Message-Id. > >=20 > > I fail to find this feature in the code and wonder if it is a feature > > that was added only to the public-inbox clone used to operate > > lore.kernel.org. >=20 > PublicInbox::NewsWWW fallback lets //$host/$message_id work (no /r/). > It can be run as a standalone PSGI, too, see examples/newswww.psgi Huh, it seems I have to dig deeper into the internals of Plack. Thanks. > At least it works on my Tor .onion mirror of lore: > http://lore.czquwvybam4bgbro.onion/ and > http://rskvuqcfnfizkjg6h5jvovwb3wkikzcwskf54lfpymus6mxrzw67b5ad.onion/ >=20 > To get /r/, you can use the "mount" directive in the > Plack::Builder DSL as shown in example/newswww.psgi >=20 > > Is there some additional code or configuration necessary to make this > > work? Am I missing something? >=20 > That said, I seem to recall lore.kernel.org/r/ existing before NewsWWW, > so maybe it was something else, too. (It may have even existed > somewhere on kernel.org before lore) @Konstantin: It would be great if you shared how this is implemented on lore.kernel.org. For me this redirection is so convenient I definitely want to have it. I wonder if it is considered good by others, too. Then maybe implement it in the core?! Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --4om4i6lhxjbhs4w6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmAYAYMACgkQwfwUeK3K 7Am0ggf9GmHP4LYQNSvgaL9jJ6qMD9aK0MZLf68YRmqC3NMYtX0ORSUEGLnQJEb8 vMzRv/WTV4TmV6Tr8+r6Jiy4aeYe3JlrFQU0+TDDM1/XEqzalNOO68sYhtmr6bvM v/mHVlPk+GviMAC3ZNh9uYbBY5GEspDFyTA7gtvzVknwgyrraAsO5/Hlcoxju6ma XISohATnIFqy2RUgjwI0wHYfhQlR+1b2AzcA6iAi/UICR29e4ItUrVf1cVQ4rykk lolNseJJVaxFzMAPisGGvYuMn8JZWsxKhPxCZaSddhr1SNloetmDBxiLYBB3/0p1 1LyqaByZ9RqEsfKYE1ja61+rjkYAiA== =awRb -----END PGP SIGNATURE----- --4om4i6lhxjbhs4w6--