Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 80 / 7d68c22018aaf57b0bb6479dfe54efccc310d1
1 Return-Path: <david@tethera.net>\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 272C06DE17DB\r
6  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 04:34:20 -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.132\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.132 tagged_above=-999 required=5 tests=[AWL=0.132]\r
12  autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id gK23qlM23GAR for <notmuch@notmuchmail.org>;\r
16  Mon, 10 Aug 2015 04:34:18 -0700 (PDT)\r
17 Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id 249506DE00DE\r
19  for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 04:34:17 -0700 (PDT)\r
20 Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
21  (envelope-from <david@tethera.net>)\r
22  id 1ZOlJx-0002jN-Q4; Mon, 10 Aug 2015 11:32:49 +0000\r
23 Received: (nullmailer pid 29862 invoked by uid 1000); Mon, 10 Aug 2015\r
24  11:32:40 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: Daniel Schoepe <daniel@schoepe.org>, notmuch@notmuchmail.org\r
27 Subject: Re: [PATCH 4/5] cli: add global option "--uuid"\r
28 In-Reply-To: <87fv3rtray.fsf@schoepe.localhost>\r
29 References: <1439112285-6681-1-git-send-email-david@tethera.net>\r
30  <1439112285-6681-5-git-send-email-david@tethera.net>\r
31  <87fv3rtray.fsf@schoepe.localhost>\r
32 User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1\r
33  (x86_64-pc-linux-gnu)\r
34 Date: Mon, 10 Aug 2015 13:32:40 +0200\r
35 Message-ID: <87r3nbl6p3.fsf@maritornes.cs.unb.ca>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.18\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42  <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Mon, 10 Aug 2015 11:34:20 -0000\r
51 \r
52 Daniel Schoepe <daniel@schoepe.org> writes:\r
53 \r
54 > Based on quick experiments, it seems that the revisions don't change\r
55 > when compacting the database; is this something that the patches\r
56 > guarantee or a coincidence?\r
57 \r
58 Now that you mention it, I can see that despite essentially quoting the\r
59 xapian docs, compacting might not be the best example.\r
60 \r
61 According to the xapian docs:\r
62 \r
63    The UUID will persist for the lifetime of the database.\r
64 \r
65     Replicas (eg, made with the replication protocol, or by copying all\r
66     the database files) will have the same UUID. However, copies (made\r
67     with copydatabase, or xapian-compact) will have different UUIDs.\r
68 \r
69 So compacting is in fact a bit of a strange case, it preserves the\r
70 lastmod counters (because those are just terms on documents), but not\r
71 the uuid. This means from notmuch point of view have no programmatic way\r
72 to know that we can trust the lastmod data, i.e. no way to distinguish a\r
73 previous notmuch-compact from "notmuch dump && rm the database &&\r
74 notmuch new && notmuch restore".  On the other hand, I _think_ we could\r
75 promise the user that lastmod data is preserved by compacting; they\r
76 would just have to tell whatever external tool to ignore uuid errors and\r
77 perhaps set the new uuid.\r
78 \r
79 d\r