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 BF64B1F9FD; Wed, 24 Feb 2021 20:49:50 +0000 (UTC) Date: Thu, 25 Feb 2021 02:49:50 +0600 From: Eric Wong To: meta@public-inbox.org Subject: lei: per-message keywords and externals Message-ID: <20210224204950.GA2076@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-Id: Something I've been pondering for a bit is how to handle keywords (Seen, Important, Replied, ...) for messages stored in externals. I want "kw:" prefix to be a usable search term, like: lei q something interesting kw:seen lei q something interesting NOT kw:seen This is no problem for imported messages in ~/.local/share/lei/store. All the keyword info is stored in line with the rest of the Xapian index data. But, I also don't want to be wasting users' space by duplicating index data if they're already hosting inboxes for public consumption. So, it's looking like parsing out kw: ourselves and do extra filtering on our end when externals are in play is going to be a requirement... Or, just don't support searching using "kw:" with externals, for now; but still stash keywords somewhere when writing to traditional mail stores. And there's also HTTP/HTTPS externals, but those will have transparent caching/memoization into lei/store by default, soon.