Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 5e / 9fbcda35b38e29c9e30ed8a9aaa537937ffe0e
1 Return-Path: <cworth@cworth.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id C4E60431FBD;\r
6         Tue, 22 Dec 2009 16:06:00 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id d7Xu7rbR6MlO; Tue, 22 Dec 2009 16:06:00 -0800 (PST)\r
11 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
12         by olra.theworths.org (Postfix) with ESMTP id 30DBC431FAE;\r
13         Tue, 22 Dec 2009 16:06:00 -0800 (PST)\r
14 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
15         id DE496254306; Tue, 22 Dec 2009 16:05:59 -0800 (PST)\r
16 From: Carl Worth <cworth@cworth.org>\r
17 To: Olly Betts <olly@survex.com>, notmuch@notmuchmail.org\r
18 In-Reply-To: <loom.20091222T234335-482@post.gmane.org>\r
19 References: <87oclwrtqa.fsf@jameswestby.net>\r
20         <874onoysrl.fsf@yoom.home.cworth.org> <87my1grrdi.fsf@jameswestby.net>\r
21         <873a38ypg5.fsf@yoom.home.cworth.org>\r
22         <loom.20091222T234335-482@post.gmane.org>\r
23 Date: Tue, 22 Dec 2009 16:05:53 -0800\r
24 Message-ID: <87fx72o8pq.fsf@yoom.home.cworth.org>\r
25 MIME-Version: 1.0\r
26 Content-Type: multipart/signed; boundary="=-=-=";\r
27         micalg=pgp-sha1; protocol="application/pgp-signature"\r
28 Subject: Re: [notmuch] Missing messages breaking threads\r
29 X-BeenThere: notmuch@notmuchmail.org\r
30 X-Mailman-Version: 2.1.12\r
31 Precedence: list\r
32 List-Id: "Use and development of the notmuch mail system."\r
33         <notmuch.notmuchmail.org>\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
35         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
37 List-Post: <mailto:notmuch@notmuchmail.org>\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
41 X-List-Received-Date: Wed, 23 Dec 2009 00:06:00 -0000\r
42 \r
43 --=-=-=\r
44 Content-Transfer-Encoding: quoted-printable\r
45 \r
46 On Tue, 22 Dec 2009 22:48:25 +0000 (UTC), Olly Betts <olly@survex.com> wrot=\r
47 e:\r
48 > This is just the sort of thing which Xapian's "user metadata" is there\r
49 > for.  It's essentially a key/value store which is versioned along with\r
50 > the rest of the Xapian database.  So to set it:\r
51 >=20\r
52 >   database.set_metadata("version", "1");\r
53 >=20\r
54 > And to read (and default if not set):\r
55 >=20\r
56 >   string version =3D database.get_metadata("version");\r
57 >   if (version.empty()) version =3D "0";\r
58 \r
59 Thanks, Olly!\r
60 \r
61 That is exactly what we'll want here, and is much better than a magic\r
62 document.\r
63 \r
64 =2DCarl (grateful to have a Xapian expert keeping watch on the list)\r
65 \r
66 --=-=-=\r
67 Content-Type: application/pgp-signature\r
68 \r
69 -----BEGIN PGP SIGNATURE-----\r
70 Version: GnuPG v1.4.10 (GNU/Linux)\r
71 \r
72 iD8DBQFLMV7h6JDdNq8qSWgRAoMHAJwIOUM+R6Epbfj4RZTneS7AOE2GiACgoVsp\r
73 hvOfxpM78lYOf5BEUa8FmF8=\r
74 =tt1w\r
75 -----END PGP SIGNATURE-----\r
76 --=-=-=--\r