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 6CF6A1F4B4 for ; Tue, 13 Apr 2021 10:54:46 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/5] "lei q --save" + "lei up" Date: Tue, 13 Apr 2021 10:54:41 +0000 Message-Id: <20210413105446.7245-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "--save" may become the default when writing to a pathname or URL. "lei up" will be used to update the results of "--save". This only supports local externals at the moment, remote externals won't be able to avoid excess traffic easily. Usability improvements are coming... Eric Wong (5): lei_xsearch: use per-external queries when not sorting lei_dedupe: adjust to prepare for saved searches lei_query: rearrange internals to capture query early lei q: start wiring up saved search lei: add "lei up" to complement "lei q --save" MANIFEST | 4 + lib/PublicInbox/LEI.pm | 6 +- lib/PublicInbox/LeiDedupe.pm | 16 ++-- lib/PublicInbox/LeiQuery.pm | 59 +++++++------ lib/PublicInbox/LeiSavedSearch.pm | 142 ++++++++++++++++++++++++++++++ lib/PublicInbox/LeiToMail.pm | 18 ++-- lib/PublicInbox/LeiUp.pm | 46 ++++++++++ lib/PublicInbox/LeiXSearch.pm | 94 +++++++++++++------- t/lei-q-save.t | 25 ++++++ t/lei.t | 2 +- t/lei_dedupe.t | 11 ++- t/lei_saved_search.t | 10 +++ 12 files changed, 356 insertions(+), 77 deletions(-) create mode 100644 lib/PublicInbox/LeiSavedSearch.pm create mode 100644 lib/PublicInbox/LeiUp.pm create mode 100644 t/lei-q-save.t create mode 100644 t/lei_saved_search.t