From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Reto <reto@labrat.space>, notmuch@notmuchmail.org
Subject: Re: export notmuch_database_reopen
Date: Thu, 20 Feb 2020 12:18:52 -0500 [thread overview]
Message-ID: <87h7zl9nyb.fsf@fifthhorseman.net> (raw)
In-Reply-To: <20200213211127.nhmxnhszxsol47bi@feather.localdomain>
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
On Thu 2020-02-13 22:11:27 +0100, Reto wrote:
> 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.
if you have a read/write DB, then the changes you make to the DB are
also visible, right? it's not a static snapshot in that sense.
I think you're asking about a situation where you have a read-only DB,
and someone else has modified the database in the meantime. Is that
correct?
In that case, it might also be nice to be able to detect *when* some
other change has been made, so that you can perform such a reopen.
I don't know xapian well enough to know whether that kind if
inter-process signalling is possible, though. Maybe Olly can provide
some guidance here?
--dkg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2020-02-20 17:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-13 21:11 export notmuch_database_reopen Reto
2020-02-13 22:54 ` David Bremner
2020-02-14 5:07 ` Reto
2020-02-20 17:18 ` Daniel Kahn Gillmor [this message]
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=87h7zl9nyb.fsf@fifthhorseman.net \
--to=dkg@fifthhorseman.net \
--cc=notmuch@notmuchmail.org \
--cc=reto@labrat.space \
/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).