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 5A7F11F9FC for ; Tue, 23 Mar 2021 05:02:18 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] lei mark: volatile metadata tagging Date: Tue, 23 Mar 2021 11:02:16 +0600 Message-Id: <20210323050218.28873-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I'm not sure if this should be called "mark", but maybe "lei tag" is a better name? It allows us to set and unset keywords (aka IMAP/Maildir flags) and labels (aka JMAP mailbox name) for messages already known to lei/store. We don't support reading labels, yet... Eric Wong (2): lei mark: command for (un)setting keywords and labels lei mark: add support for (bash) completion MANIFEST | 2 + lib/PublicInbox/LEI.pm | 42 +++---- lib/PublicInbox/LeiImport.pm | 15 +-- lib/PublicInbox/LeiInput.pm | 11 +- lib/PublicInbox/LeiMark.pm | 220 +++++++++++++++++++++++++++++++++++ lib/PublicInbox/LeiStore.pm | 19 +++ lib/PublicInbox/SearchIdx.pm | 23 ++++ t/lei-mark.t | 47 ++++++++ 8 files changed, 347 insertions(+), 32 deletions(-) create mode 100644 lib/PublicInbox/LeiMark.pm create mode 100644 t/lei-mark.t