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=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,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 6278D1F8C4 for ; Sun, 7 Feb 2021 08:52:01 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/19] lei import Maildir, remote mboxrd fixes Date: Sun, 7 Feb 2021 08:51:42 +0000 Message-Id: <20210207085201.13871-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "lei q" with remote mboxrd + early MUA spawning is nicer, too. Several risky constructs eliminated, Interrupting "add-external --mirror" is less bad, now; though it could probably support indexlevel=none in case somebody wants to run index themselves. Eric Wong (19): spawn: pi_fork_exec: restore parent sigmask in child spawn: pi_fork_exec: support "pgid" lei add-external: handle interrupts with --mirror spawn_pp: die more consistently in child ipc: do not die inside wq_worker child process ipc: trim down the Storable checks Makefile.PL: depend on IO::Uncompress::Gunzip xapcmd: avoid potential die surprise in children tests: guard setup_public_inboxes for SQLite and Xapian Revert "ipc: add support for asynchronous callbacks" ipc: wq_do => wq_io_do lei: more consistent IPC exit and error handling lei: remove --mua-cmd alias for --mua lei: replace --thread with --threads lei q: improve remote mboxrd UX lei q: SIGWINCH process group with the terminal lei import: support Maildirs imap: avoid unnecessary delete on stack httpd/async: avoid unnecessary on-stack delete Documentation/lei-q.pod | 4 +- MANIFEST | 1 + Makefile.PL | 1 + lib/PublicInbox/HTTPD/Async.pm | 2 +- lib/PublicInbox/IMAP.pm | 6 +- lib/PublicInbox/IPC.pm | 105 +++++++----------------- lib/PublicInbox/LEI.pm | 49 +++++++---- lib/PublicInbox/LeiCurl.pm | 11 ++- lib/PublicInbox/LeiHelp.pm | 6 +- lib/PublicInbox/LeiImport.pm | 38 ++++++--- lib/PublicInbox/LeiMirror.pm | 75 ++++++++++------- lib/PublicInbox/LeiOverview.pm | 7 +- lib/PublicInbox/LeiQuery.pm | 4 +- lib/PublicInbox/LeiStore.pm | 8 +- lib/PublicInbox/LeiToMail.pm | 37 ++++----- lib/PublicInbox/LeiXSearch.pm | 143 ++++++++++++++++++++------------- lib/PublicInbox/Mbox.pm | 2 +- lib/PublicInbox/OnDestroy.pm | 2 +- lib/PublicInbox/Search.pm | 2 +- lib/PublicInbox/SearchView.pm | 2 +- lib/PublicInbox/Spawn.pm | 63 +++++++++------ lib/PublicInbox/SpawnPP.pm | 44 +++++----- lib/PublicInbox/Xapcmd.pm | 11 +-- script/lei | 8 +- t/ipc.t | 39 ++------- t/lei-externals.t | 2 + t/lei-import-maildir.t | 33 ++++++++ t/lei-mirror.t | 14 ++++ t/lei.t | 2 +- t/lei_to_mail.t | 6 +- t/spawn.t | 18 +++++ xt/stress-sharedkv.t | 6 +- 32 files changed, 433 insertions(+), 318 deletions(-) create mode 100644 t/lei-import-maildir.t