Re: export notmuch_database_reopen

Subject: Re: export notmuch_database_reopen

Date: Thu, 20 Feb 2020 12:18:52 -0500

To: Reto, notmuch@notmuchmail.org

Cc:

From: Daniel Kahn Gillmor


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
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: