Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C4E60431FBD; Tue, 22 Dec 2009 16:06:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d7Xu7rbR6MlO; Tue, 22 Dec 2009 16:06:00 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 30DBC431FAE; Tue, 22 Dec 2009 16:06:00 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id DE496254306; Tue, 22 Dec 2009 16:05:59 -0800 (PST) From: Carl Worth To: Olly Betts , notmuch@notmuchmail.org In-Reply-To: References: <87oclwrtqa.fsf@jameswestby.net> <874onoysrl.fsf@yoom.home.cworth.org> <87my1grrdi.fsf@jameswestby.net> <873a38ypg5.fsf@yoom.home.cworth.org> Date: Tue, 22 Dec 2009 16:05:53 -0800 Message-ID: <87fx72o8pq.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] Missing messages breaking threads X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 00:06:00 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 22 Dec 2009 22:48:25 +0000 (UTC), Olly Betts wrot= e: > 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: >=20 > database.set_metadata("version", "1"); >=20 > And to read (and default if not set): >=20 > string version =3D database.get_metadata("version"); > if (version.empty()) version =3D "0"; Thanks, Olly! That is exactly what we'll want here, and is much better than a magic document. =2DCarl (grateful to have a Xapian expert keeping watch on the list) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLMV7h6JDdNq8qSWgRAoMHAJwIOUM+R6Epbfj4RZTneS7AOE2GiACgoVsp hvOfxpM78lYOf5BEUa8FmF8= =tt1w -----END PGP SIGNATURE----- --=-=-=--