Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9d / 7fb7f3dcad1863bf58f1396a4907372e76455d
1 Return-Path: <gmn-notmuch@m.gmane.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 23BFA431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 22 Dec 2009 14:49:43 -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 1JPObIbCAbzi for <notmuch@notmuchmail.org>;\r
11         Tue, 22 Dec 2009 14:49:42 -0800 (PST)\r
12 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])\r
13         by olra.theworths.org (Postfix) with ESMTP id 5B3B6431FAE\r
14         for <notmuch@notmuchmail.org>; Tue, 22 Dec 2009 14:49:42 -0800 (PST)\r
15 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NNDXq-0007pM-TI\r
16         for notmuch@notmuchmail.org; Tue, 22 Dec 2009 23:49:35 +0100\r
17 Received: from ip-118-90-130-94.xdsl.xnet.co.nz ([118.90.130.94])\r
18         by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
19         id 1AlnuQ-0007hv-00\r
20         for <notmuch@notmuchmail.org>; Tue, 22 Dec 2009 23:49:34 +0100\r
21 Received: from olly by ip-118-90-130-94.xdsl.xnet.co.nz with local (Gmexim 0.1\r
22         (Debian)) id 1AlnuQ-0007hv-00\r
23         for <notmuch@notmuchmail.org>; Tue, 22 Dec 2009 23:49:34 +0100\r
24 X-Injected-Via-Gmane: http://gmane.org/\r
25 To: notmuch@notmuchmail.org\r
26 From: Olly Betts <olly@survex.com>\r
27 Date: Tue, 22 Dec 2009 22:48:25 +0000 (UTC)\r
28 Lines: 20\r
29 Message-ID: <loom.20091222T234335-482@post.gmane.org>\r
30 References: <87oclwrtqa.fsf@jameswestby.net>\r
31         <874onoysrl.fsf@yoom.home.cworth.org>\r
32         <87my1grrdi.fsf@jameswestby.net>\r
33         <873a38ypg5.fsf@yoom.home.cworth.org>\r
34 Mime-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 Content-Transfer-Encoding: 7bit\r
37 X-Complaints-To: usenet@ger.gmane.org\r
38 X-Gmane-NNTP-Posting-Host: sea.gmane.org\r
39 User-Agent: Loom/3.14 (http://gmane.org/)\r
40 X-Loom-IP: 118.90.130.94 (Mozilla/5.0 (X11; U; Linux x86_64; en-GB;\r
41         rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6)\r
42 Sender: news <news@ger.gmane.org>\r
43 Subject: Re: [notmuch] Missing messages breaking threads\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.12\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Tue, 22 Dec 2009 22:49:43 -0000\r
57 \r
58 Carl Worth writes:\r
59 > We don't have any concept of versioning yet, but it would obviously be\r
60 > easy to have a new version document with an increasing integer.\r
61 \r
62 Adding a magic document for this isn't ideal as you have to make sure\r
63 it can't appear in search results, etc.\r
64 \r
65 This is just the sort of thing which Xapian's "user metadata" is there\r
66 for.  It's essentially a key/value store which is versioned along with\r
67 the rest of the Xapian database.  So to set it:\r
68 \r
69   database.set_metadata("version", "1");\r
70 \r
71 And to read (and default if not set):\r
72 \r
73   string version = database.get_metadata("version");\r
74   if (version.empty()) version = "0";\r
75 \r
76 Cheers,\r
77    Olly\r
78 \r