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 C6B0A1F4C0 for ; Thu, 24 Oct 2019 00:12:41 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/7] redundant header madness Date: Thu, 24 Oct 2019 00:12:34 +0000 Message-Id: <20191024001241.14224-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: Garbage in, garbage out. Since we try to never drop messages in v2, we now better support horrible messages with redundant and confusing headers in the HTML view and search indices. I'm a little iffy on adding more support to X-Alt-Message-IDs because it's a gross hack; but so was injecting new Message-IDs to support different messages with different content. And I very much want NNTP clients to be able to build partial mirrors without relying on expensive git clones. Those mirrors should still be able to lookup messages by whatever Message-IDs the message was known by. Eric Wong (7): search: support multiple From/To/Cc/Subject headers view: display redundant headers in permalink view: move '<' and '>' outside view: improve warning for multiple Message-IDs linkify: support adding "(raw)" link for Message-IDs # next two are RFCs but I'm leaning heavily on supporting them: index: allow search/lookups on X-Alt-Message-ID view: show X-Alt-Message-ID in permalink view, too lib/PublicInbox/Linkify.pm | 31 ++++++++++ lib/PublicInbox/MID.pm | 27 +++++++-- lib/PublicInbox/OverIdx.pm | 4 +- lib/PublicInbox/SearchIdx.pm | 4 +- lib/PublicInbox/SearchMsg.pm | 4 +- lib/PublicInbox/View.pm | 106 ++++++++++++++++++++--------------- t/mid.t | 7 ++- t/psgi_v2.t | 2 +- t/v2reindex.t | 16 ++++-- t/v2writable.t | 16 ++++++ 10 files changed, 153 insertions(+), 64 deletions(-)