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=-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 E01331F9FD for ; Wed, 3 Mar 2021 13:48:57 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/4] lei q: avoiding accidental data loss Date: Wed, 3 Mar 2021 13:48:53 +0000 Message-Id: <20210303134857.7227-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "lei q" mimicking mairix(1) could cause some grief if somebody accidentally sets the output destination to one containing precious mail or keyword changes. Start by stashing keyword changes into our store during the augment/unlink phase. Eric Wong (4): eml: each_part: document IMAP user of the $all parameter lei_xsearch: add_eml for remote mboxrd, not set_eml lei: use maildir_each_eml in more places lei q: import flags when clobbering/augmenting Maildirs MANIFEST | 1 + lib/PublicInbox/Eml.pm | 1 + lib/PublicInbox/ExtSearchIdx.pm | 1 + lib/PublicInbox/LEI.pm | 2 +- lib/PublicInbox/LeiConvert.pm | 3 +-- lib/PublicInbox/LeiQuery.pm | 5 +++- lib/PublicInbox/LeiSearch.pm | 47 +++++++++++++++++++++++++++++++++ lib/PublicInbox/LeiStore.pm | 27 +++++++++---------- lib/PublicInbox/LeiToMail.pm | 45 ++++++++++++++++++++----------- lib/PublicInbox/LeiXSearch.pm | 2 +- lib/PublicInbox/MdirReader.pm | 10 ++++--- t/lei-convert.t | 2 +- t/lei-q-kw.t | 33 +++++++++++++++++++++++ t/lei.t | 3 ++- t/lei_store.t | 10 ++++++- 15 files changed, 149 insertions(+), 43 deletions(-) create mode 100644 t/lei-q-kw.t