Re: Hi all
[notmuch-archives.git] / 38 / c0656520c6535f8d8eff7bc0073a90dcd5eabc
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 B9F056DE17DD\r
6  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 05:57:52 -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 L90iNwty3OUc for <notmuch@notmuchmail.org>;\r
19  Mon, 10 Aug 2015 05:57:51 -0700 (PDT)\r
20 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
21  [209.85.212.179])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id BD1826DE0244\r
23  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 05:57:50 -0700 (PDT)\r
24 Received: by wicne3 with SMTP id ne3so134840297wic.1\r
25  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 05:57:49 -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=rWLAZme0IC0gQkoSTJAuBGah4CblVBMkoG6eIk9mqIA=;\r
30  b=X/vNIM/x8oSawpGpB/A2yEZz+PxURNVWvXgRqPswdNn3aOG5qPdjboG69uXI5VYsQY\r
31  oQIvqJmSIdiRWJ03X1ScmXP4rql83mwzwukPnu0pO33Kc0+4zD4C3HWDiy1r0OpzFhop\r
32  WZbDIn6QnaXIgb6/JTZdrWFW2gszVYsX+Lf2A=\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=rWLAZme0IC0gQkoSTJAuBGah4CblVBMkoG6eIk9mqIA=;\r
38  b=lBHAZbXG8IkPMK6BhQY4OGw0vnHaV2ECITf2Mwh1Wwgc33eIzHB5Ip8RfNYdCBfqTr\r
39  r2P8YszoQJo9xSPB+A16fsHP2fwVwh6F5OBBeSNDRzRHKFeEYFciYNEYgH2sElaKoVmz\r
40  EyW7dVnWcENaNohcfydNJFxuVIJERuUUrWRxYCoYmTCHEWLZ5YqSxVqukvn5FjvWZSIH\r
41  gR4i5FO64FcYFQk1kCuqcL8c1ikbsbgOKTVeyEHs7LPnrB9/VWcPTti51TRuhBz/YTXA\r
42  bK9PhhDromuY+YoAf+dE2ltb2tX7zjQGOOzI5tjia0j4qzV4dqcxERmwOszoeeKBMbu4\r
43  dmCw==\r
44 X-Gm-Message-State:\r
45  ALoCoQmIwIp5IVY8NHdcC5rN+S5jpY6wdWTZhWFhhThlge/lKg40NWA1y+SI5vddbLoZxglvI5x2\r
46 X-Received: by 10.180.21.200 with SMTP id x8mr21967985wie.59.1439211468813;\r
47  Mon, 10 Aug 2015 05:57:48 -0700 (PDT)\r
48 Received: from localhost (ip-80-226-24-12.vodafone-net.de. [80.226.24.12])\r
49  by smtp.gmail.com with ESMTPSA id fa8sm13700582wib.14.2015.08.10.05.57.45\r
50  (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
51  Mon, 10 Aug 2015 05:57:47 -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: <87r3nbl6p3.fsf@maritornes.cs.unb.ca>\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  <87fv3rtray.fsf@schoepe.localhost> <87r3nbl6p3.fsf@maritornes.cs.unb.ca>\r
59 User-Agent: Notmuch/0.20.2+58~g20ed908 (http://notmuchmail.org) Emacs/24.5.1\r
60  (x86_64-unknown-linux-gnu)\r
61 Date: Mon, 10 Aug 2015 14:57:42 +0200\r
62 Message-ID: <87d1yvti61.fsf@schoepe.localhost>\r
63 MIME-Version: 1.0\r
64 Content-Type: text/plain\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.18\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69  <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Mon, 10 Aug 2015 12:57:52 -0000\r
78 \r
79 On Mon, 10 Aug 2015 13:32 +0200, David Bremner wrote:\r
80 > So compacting is in fact a bit of a strange case, it preserves the\r
81 > lastmod counters (because those are just terms on documents), but not\r
82 > the uuid. This means from notmuch point of view have no programmatic way\r
83 > to know that we can trust the lastmod data, i.e. no way to distinguish a\r
84 > previous notmuch-compact from "notmuch dump && rm the database &&\r
85 > notmuch new && notmuch restore".  On the other hand, I _think_ we could\r
86 > promise the user that lastmod data is preserved by compacting; they\r
87 > would just have to tell whatever external tool to ignore uuid errors and\r
88 > perhaps set the new uuid.\r
89 \r
90 Yeah, I think it's reasonable to assume that if the user will delete and\r
91 recreate the database, they will also perform the necessary\r
92 reinitialization of whatever tool makes use of lastmod / UUID. I guess\r
93 this also means that tools often only care about lastmod values and not\r
94 the UUID, to allow for compacting without thinking the database is\r
95 completely different now.\r
96 \r
97 Another option is to include lastmod values in the output of\r
98 notmuch-dump. Doing that in a clean way might be hard though and I think\r
99 this shouldn't be part of this series (which looks fine to me now).\r
100 \r
101 Best regards,\r
102 Daniel\r