database error
[notmuch-archives.git] / ce / 0361e9945e5c080be7747597ac1027bd50abca
1 Return-Path: <daniel@schoepe.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 arlo.cworth.org (Postfix) with ESMTP id 3D3C56DE099D\r
6  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 02:40:31 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.11\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.11 tagged_above=-999 required=5 tests=[AWL=0.097, \r
12  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
14  RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, SPF_PASS=-0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id 9puF84tGk56y for <notmuch@notmuchmail.org>;\r
19  Mon, 10 Aug 2015 02:40:29 -0700 (PDT)\r
20 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com\r
21  [209.85.212.177])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id F07C36DE0244\r
23  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 02:40:28 -0700 (PDT)\r
24 Received: by wijp15 with SMTP id p15so128138393wij.0\r
25  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 02:40:26 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
27  h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
28  :mime-version:content-type;\r
29  bh=NM5vOvefEmGvwLmbUPmyv4Lt4vIzRMETzJBnV9Ep0kY=;\r
30  b=NMerkH3ZruGDymV75CUqw4AtKTDxqvv8x1NEXz0VoUB/R6Cw7Y7OB1p6o8Fjqu2u4H\r
31  FYq/ykeoA+cBGUklYyakWvsbJ3CITAYm+asJg7ziAVLWBzRnYlfQWEVqUgSXSeiXy6bP\r
32  bFlhVjkvXc8jYIajpTMWOAE1F/JhcrmawC3QE=\r
33 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
34  d=1e100.net; s=20130820;\r
35  h=x-gm-message-state:from:to:subject:in-reply-to:references\r
36  :user-agent:date:message-id:mime-version:content-type;\r
37  bh=NM5vOvefEmGvwLmbUPmyv4Lt4vIzRMETzJBnV9Ep0kY=;\r
38  b=cLEk5UbBfYnJPHRoe7uewu9W2ap03Fvyz73HuCaCMAJdKnmeY4nGPAs7QYj81g6OVZ\r
39  M2+dWuaeJcAihSO1//qR1D7HmaZwkpA0vnxW3zhuP00pdkwuXrzmG6FblgeLds+7+WSy\r
40  dkNvre1vMeo5hlOMJyrGC2hoWH6GYWWuDbmudWF7W/rGgD3t5O/dV6bmawsbD84XZpX7\r
41  MXhyFe/b9evLBMD7EqIedCuUMyBczSCf4WWuj6Lw7r3bAumFeSk9WAEJEFeMdWeoTyRo\r
42  HfPUGxrNImsGazCMyCXy/hjfYBKWsh+hgg8U2C7ZweGZ3BdIdJ9l34v5Zk4AqERsB/X5\r
43  1njw==\r
44 X-Gm-Message-State:\r
45  ALoCoQlpHEhqeV3uUrvJep6/MvbEHfKSrAFvuAz9/UFxyXXg9wSiuAqQB/gki4UDHsX+TnjF9jbv\r
46 X-Received: by 10.194.172.130 with SMTP id bc2mr46488639wjc.85.1439199626796; \r
47  Mon, 10 Aug 2015 02:40:26 -0700 (PDT)\r
48 Received: from localhost (ip-80-226-24-8.vodafone-net.de. [80.226.24.8])\r
49  by smtp.gmail.com with ESMTPSA id fs8sm1649964wib.0.2015.08.10.02.40.24\r
50  (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
51  Mon, 10 Aug 2015 02:40:25 -0700 (PDT)\r
52 From: Daniel Schoepe <daniel@schoepe.org>\r
53 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
54 Subject: Re: [PATCH 4/5] cli: add global option "--uuid"\r
55 In-Reply-To: <1439112285-6681-5-git-send-email-david@tethera.net>\r
56 References: <1439112285-6681-1-git-send-email-david@tethera.net>\r
57  <1439112285-6681-5-git-send-email-david@tethera.net>\r
58 User-Agent: Notmuch/0.20.2+58~g20ed908 (http://notmuchmail.org) Emacs/24.5.1\r
59  (x86_64-unknown-linux-gnu)\r
60 Date: Mon, 10 Aug 2015 11:40:21 +0200\r
61 Message-ID: <87fv3rtray.fsf@schoepe.localhost>\r
62 MIME-Version: 1.0\r
63 Content-Type: text/plain\r
64 X-BeenThere: notmuch@notmuchmail.org\r
65 X-Mailman-Version: 2.1.18\r
66 Precedence: list\r
67 List-Id: "Use and development of the notmuch mail system."\r
68  <notmuch.notmuchmail.org>\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
70  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
72 List-Post: <mailto:notmuch@notmuchmail.org>\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
75  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
76 X-List-Received-Date: Mon, 10 Aug 2015 09:40:31 -0000\r
77 \r
78 On Sun, 09 Aug 2015 11:24+0200, David Bremner wrote:\r
79 > +    ``--uuid=HEX``\r
80 > +       Enforce that the database UUID (a unique identifier which\r
81 > +       persists until e.g. the database is compacted)\r
82 > +       is HEX; exit with an error if it is not. This is useful to\r
83 > +       detect rollover in modification counts on messages. You can\r
84 > +       find this UUID in the first column of output from\r
85 > +       ``notmuch count --output=modifications``\r
86 \r
87 I think it's not entirely clear what the connection between the UUID and\r
88 the revisions on messages is. For example, compacting a database\r
89 shouldn't make a difference "extensionally", so the naive assumption\r
90 might be that the UUID, or, maybe more importantly, the revision counts\r
91 don't change.\r
92 \r
93 For example, if lastmod queries are used to incrementally back up or\r
94 synchronize tags, then it doesn't matter if the database got compacted,\r
95 all one cares about are the changes to messages' tags since an earlier\r
96 point.\r
97 \r
98 Based on quick experiments, it seems that the revisions don't change\r
99 when compacting the database; is this something that the patches\r
100 guarantee or a coincidence?\r
101 \r
102 Best regards,\r
103 Daniel\r