From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: lei: per-message keywords and externals
Date: Thu, 25 Feb 2021 02:49:50 +0600 [thread overview]
Message-ID: <20210224204950.GA2076@dcvr> (raw)
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.
next reply other threads:[~2021-02-24 20:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-24 20:49 Eric Wong [this message]
2021-02-26 9:26 ` lei: per-message keywords and externals Eric Wong
2021-03-02 9:28 ` Eric Wong
2021-03-03 14:01 ` [RFC] lei_xkw: eXternal KeyWord index Eric Wong
2021-03-13 11:50 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210224204950.GA2076@dcvr \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).