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 84DDE1F9FC; Fri, 26 Mar 2021 10:31:03 +0000 (UTC) Date: Fri, 26 Mar 2021 10:31:03 +0000 From: Eric Wong To: meta@public-inbox.org Subject: labels for externals [was: lei labels support] Message-ID: <20210326103103.GA561@dcvr> References: <20210326042937.15913-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210326042937.15913-1-e@80x24.org> List-Id: Eric Wong wrote: > Unfortunately, it's limited to imported messages and > searching for labeled external messages doesn't work, > yet. I'm not sure how to best go about this... I'm thinking adding a label to an external-only message should cause it to be imported into lei/store. Related to "lei: per-message keywords and externals" at https://public-inbox.org/meta/20210224204950.GA2076@dcvr/ in that it's technically the same problem, but not semantically. The key difference between keywords and labels is labels require explicit, concious effort on a user's part to "lei mark" a message. Even within an MUA, copying/moving a message to a new mailbox requires explicit user action. Keyword updates are largely transparent from the MUA, with "seen" is the most common keyword. Default MUA behavior is to set the "seen" keyword on any read message. "seen" keyword updates will be even more transparent when inotify/IMAP IDLE support is added to lei. So again, I think users should get an automatic import when they label. Maybe implementing indexlevel=medium on a per-message level could be used to save space. git storage shouldn't be too expensive, and alternates can be used safely unless the external was is subject to -purge/edit-prone