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.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE 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 8A7C91F54E for ; Fri, 2 Sep 2022 09:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1662109974; bh=YIqHjT+o9VYhyqgDb6+llOw/ZPomJR/Ot59aXUiBi0M=; h=From:To:Subject:Date:From; b=TP1HDLbnJ8nj20jgPZP55gj2+U04NJQnKrzUs4g1KKJNwEy2q0IuzmtKHVG9pxGoi gImGqPFfukVNZYfD9VlkxCtWSm3KxjtcgGVQ1qQHXzKBh8i5J69b/Bw8TTQ9in/GCN S2T32bNiiPeqEvvH5M+J5OfcanuA4vuXeFsej06Y= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] extmsg: shorten partial Message-IDs minimum to 14 Date: Fri, 2 Sep 2022 09:12:54 +0000 Message-Id: <20220902091254.14779-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Gnus seems to start Message-IDs with 10 random characters followed by ".fsf@$DOMAIN". In case of mis-linkification or mis-selection from stopping at the `@', ensuring the first 14 characters are accepted as a search parameter for the truncated Message-ID improves usability. --- lib/PublicInbox/ExtMsg.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm index 72cae005..95feb885 100644 --- a/lib/PublicInbox/ExtMsg.pm +++ b/lib/PublicInbox/ExtMsg.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2015-2021 all contributors +# Copyright (C) all contributors # License: AGPL-3.0+ # # Used by the web interface to link to messages outside of the our @@ -11,7 +11,7 @@ use warnings; use PublicInbox::Hval qw(ascii_html prurl mid_href); use PublicInbox::WwwStream qw(html_oneshot); use PublicInbox::Smsg; -our $MIN_PARTIAL_LEN = 16; +our $MIN_PARTIAL_LEN = 14; # for 'XXXXXXXXXX.fsf' msgids gnus generates # TODO: user-configurable our @EXT_URL = map { ascii_html($_) } (