export notmuch_database_reopen

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Feb 20 09:18:52 PST 2020

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

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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20200220/4429d267/attachment.sig>

More information about the notmuch mailing list