Re: [notmuch] Missing messages breaking threads

Subject: Re: [notmuch] Missing messages breaking threads

Date: Tue, 22 Dec 2009 16:05:53 -0800

To: Olly Betts, notmuch@notmuchmail.org

Cc:

From: Carl Worth


On Tue, 22 Dec 2009 22:48:25 +0000 (UTC), Olly Betts <olly@survex.com> wrote:
> This is just the sort of thing which Xapian's "user metadata" is there
> for.  It's essentially a key/value store which is versioned along with
> the rest of the Xapian database.  So to set it:
> 
>   database.set_metadata("version", "1");
> 
> And to read (and default if not set):
> 
>   string version = database.get_metadata("version");
>   if (version.empty()) version = "0";

Thanks, Olly!

That is exactly what we'll want here, and is much better than a magic
document.

-Carl (grateful to have a Xapian expert keeping watch on the list)
part-000.sig (application/pgp-signature)

Thread: