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=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B75421F4B4; Mon, 1 Feb 2021 11:10:49 +0000 (UTC) Date: Mon, 1 Feb 2021 11:10:49 +0000 From: Eric Wong To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: meta@public-inbox.org Subject: Re: generic message-id redirector Message-ID: <20210201111049.GA9584@dcvr> References: <20210201104115.mconuob33y3exr2u@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210201104115.mconuob33y3exr2u@pengutronix.de> List-Id: Uwe Kleine-König wrote: > Hello, > > 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. > > 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. PublicInbox::NewsWWW fallback lets //$host/$message_id work (no /r/). It can be run as a standalone PSGI, too, see examples/newswww.psgi At least it works on my Tor .onion mirror of lore: http://lore.czquwvybam4bgbro.onion/ and http://rskvuqcfnfizkjg6h5jvovwb3wkikzcwskf54lfpymus6mxrzw67b5ad.onion/ To get /r/, you can use the "mount" directive in the Plack::Builder DSL as shown in example/newswww.psgi > Is there some additional code or configuration necessary to make this > work? Am I missing something? 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)