From: Kirill Elagin <kirelagin@gmail.com>
To: Tomi Ollila <tomi.ollila@iki.fi>
Cc: notmuch@notmuchmail.org
Subject: Re: Database path discovery in bindings
Date: Wed, 22 Apr 2020 21:48:53 +0300 [thread overview]
Message-ID: <CABVT_gf7xbxA1B97MeGGKvY9f77p+p0t2Oz831AWefcg4H+Mcg@mail.gmail.com> (raw)
In-Reply-To: <m2k127gyt4.fsf@guru.guru-group.fi>
On Wed, Apr 22, 2020 at 9:28 PM Tomi Ollila <tomi.ollila@iki.fi> wrote:
>
> There has been thoughts to dump the configuration file, and put the
> configuration to the database -- so then the bindings can just open the
> database to find the configuration.... oh wait...
>
> In this case we'd find the database in $NOTMUCH_DATABASE_DIR[ECTORY?] or
> in $HOME/mail/.notmuch/... if that env var did not exist.
That sounds reasonable to me.
>
> There are at least 2 issues to solve with this approach:
>
> 1: SMOP
Given that named queries are already stored in the database (even though
considered part of config), it sounds very doable.
> 2: how to edit the configuration using text editor (preserving comments),
> i.e. export and import functionality
I’m not sure this is relevant, if the configuration is stored in the db.
Especially comments.
Again, named queries as a case in point.
A simple `notmuch config list` is “esport”, `notmuch config set
--batch` can be added.
> 3. review latency (especially w/ large patches...) ;/
>
>
> Tomi
However, all this sounds as an entirely independent proposal, even
though a reasonable one.
It is a much bigger change than potential options for solving the
problem that I raised,
and, most importantly, it doesn’t even solve it, because the
difficulty of discovering the db,
with all the falling-back logic and relative paths would remain
_exactly_ the same.
prev parent reply other threads:[~2020-04-22 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-19 18:53 Database path discovery in bindings Kirill Elagin
2020-04-22 18:28 ` Tomi Ollila
2020-04-22 18:48 ` Kirill Elagin [this message]
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABVT_gf7xbxA1B97MeGGKvY9f77p+p0t2Oz831AWefcg4H+Mcg@mail.gmail.com \
--to=kirelagin@gmail.com \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/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.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
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).