From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,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.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B64701F406 for ; Wed, 15 Nov 2023 09:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1700040106; bh=eyQDaJRg/tmXf85Ce+uk4ZLuqx4wHXpaIsFUWI1RU0w=; h=From:To:Subject:Date:From; b=JYJvEWyS7BwA8VmWFpKMU4+FVlfl4KJdsIPLvakbV3fSbz25pc1Z8Cl22SCVT6MK2 zZH7nWL6WrVvz9V7CsFQyA7ZjXKBRvfcEwU/loImEJzGbZdKFvcHpdBxFppbcfTMhs sFbgsfe/iFaQMI/+ZvkEYeioULLv84cOUL2M24s8= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/4] lei convert: support idempotent v2 outputs Date: Wed, 15 Nov 2023 09:21:41 +0000 Message-Id: <20231115092145.1131822-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This may make it easier for public-inbox admins to forcibly inject missing messages from existing mbox*/maildir/IMAP/NNTP archives. 1/4 was only needed to get 2/4 working, but 3/4 makes it unnecessary with our current codebase (though we may still need 1/4 in the future). 4/4 was noticed while working on 3/4. Eric Wong (4): lei: fix idempotent STDERR redirect in workers lei convert: fix repeat and idempotent v2 output lei: avoid extra fork for v2 outputs lei q|up|convert: common finish_output to detect errors lib/PublicInbox/LEI.pm | 2 +- lib/PublicInbox/LeiConvert.pm | 9 ++++++--- lib/PublicInbox/LeiOverview.pm | 4 ++-- lib/PublicInbox/LeiToMail.pm | 33 +++++++++++++++++++++------------ lib/PublicInbox/LeiXSearch.pm | 13 +------------ lib/PublicInbox/V2Writable.pm | 1 - t/lei-convert.t | 31 ++++++++++++++++++++++++++++++- 7 files changed, 61 insertions(+), 32 deletions(-)