unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Reto <reto@labrat.space>
To: notmuch@notmuchmail.org
Subject: export notmuch_database_reopen
Date: Thu, 13 Feb 2020 22:11:27 +0100	[thread overview]
Message-ID: <20200213211127.nhmxnhszxsol47bi@feather.localdomain> (raw)

Hi,
I'm trying to use the notmuch C library in a mail client.
Now, I learned that an open DB is essentially a snapshot at the time of opening.
If I want the current state of the notmuch DB, I need to reopen the DB.

The client I'm running is interactive and can have long running processes.
I'd like to avoid unnecessary create / destroy cycles of the DB,
especially as I'm calling the C lib via a go wrapper.

Would it be possible to export `_notmuch_database_reopen`?
Then I could call that instead. I mostly have a read only DB open anyhow.

Kind regards,
Reto

             reply	other threads:[~2020-02-13 21:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-13 21:11 Reto [this message]
2020-02-13 22:54 ` export notmuch_database_reopen David Bremner
2020-02-14  5:07   ` Reto
2020-02-20 17:18 ` Daniel Kahn Gillmor
2020-02-20 18:16   ` Reto
2020-02-20 21:36     ` Daniel Kahn Gillmor

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=20200213211127.nhmxnhszxsol47bi@feather.localdomain \
    --to=reto@labrat.space \
    --cc=notmuch@notmuchmail.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.
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).