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-ASN: 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 9DB7B1F8C6; Thu, 26 Aug 2021 12:33:38 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: Konstantin Ryabitsev Subject: [PATCH 0/8] various WWW + extindex stuff Date: Thu, 26 Aug 2021 12:33:30 +0000 Message-Id: <20210826123338.694-1-e@80x24.org> In-Reply-To: <20210816163654.c6gfzuezhji4l6s7@nitro.local> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This hopefully makes the long .onion URL more usable on small displays; but I also got sidetracked into making our "use bytes" stuff less scary based on the notice in the bytes(3perl) manpage. There's a couple of small extindex-related fixes to reconcile the differences between the two ibxish object types for WWW. Eric Wong (8): get rid of unnecessary bytes::length usage ds: use bytes::substr and bytes::length module-wide for now www_stream: sh-friendly .onion URLs wrapping www: avoid incorrect instructions for extindex www_text: fix example config snippet for extindex config: do not parse altid for extindex www_text: add coderepo config support for extindex move ->ids_after from mm to over lib/PublicInbox/Config.pm | 2 +- lib/PublicInbox/DS.pm | 21 +++--- lib/PublicInbox/ExtSearch.pm | 4 - lib/PublicInbox/HTTP.pm | 17 ++--- lib/PublicInbox/ManifestJsGz.pm | 3 +- lib/PublicInbox/Mbox.pm | 10 +-- lib/PublicInbox/Msgmap.pm | 11 --- lib/PublicInbox/NNTP.pm | 4 +- lib/PublicInbox/Over.pm | 11 +++ lib/PublicInbox/View.pm | 5 +- lib/PublicInbox/ViewVCS.pm | 5 +- lib/PublicInbox/WWW.pm | 10 +-- lib/PublicInbox/WwwAttach.pm | 4 +- lib/PublicInbox/WwwHighlight.pm | 5 +- lib/PublicInbox/WwwListing.pm | 4 +- lib/PublicInbox/WwwStatic.pm | 4 +- lib/PublicInbox/WwwStream.pm | 126 +++++++++++++++++++------------- lib/PublicInbox/WwwText.pm | 103 ++++++++++++++++---------- t/extindex-psgi.t | 15 ++++ t/psgi_search.t | 1 - t/search-thr-index.t | 8 +- t/www_listing.t | 19 ++++- xt/cmp-msgstr.t | 2 +- 23 files changed, 229 insertions(+), 165 deletions(-)