Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / fd / f29b047a3e429dab29d7088532c54239a0c70e
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 8565C6DE1623\r
6  for <notmuch@notmuchmail.org>; Fri,  7 Aug 2015 13:24:40 -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.137\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.137 tagged_above=-999 required=5 tests=[AWL=0.137]\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 GU2LtpuDOwDC for <notmuch@notmuchmail.org>;\r
16  Fri,  7 Aug 2015 13:24:39 -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 C20B66DE15A1\r
19  for <notmuch@notmuchmail.org>; Fri,  7 Aug 2015 13:24:38 -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 1ZNoAZ-0007Ie-JN; Fri, 07 Aug 2015 20:23:11 +0000\r
23 Received: (nullmailer pid 29592 invoked by uid 1000); Fri, 07 Aug 2015\r
24  20:22:56 -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 6/6] lib: Add "lastmod:" queries for filtering by last\r
28  modification\r
29 In-Reply-To: <8737zvjyy4.fsf@schoepe.localhost>\r
30 References: <1432936375-astroid-4-0i1n6yczs2-1520@strange>\r
31  <1433525318-23756-1-git-send-email-david@tethera.net>\r
32  <1433525318-23756-7-git-send-email-david@tethera.net>\r
33  <8737zvjyy4.fsf@schoepe.localhost>\r
34 User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1\r
35  (x86_64-pc-linux-gnu)\r
36 Date: Fri, 07 Aug 2015 22:22:56 +0200\r
37 Message-ID: <87twsa97bz.fsf@maritornes.cs.unb.ca>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.18\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44  <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Fri, 07 Aug 2015 20:24:40 -0000\r
53 \r
54 Daniel Schoepe <daniel@schoepe.org> writes:\r
55 \r
56 >\r
57 > It might be helpful to describe why --db-revision is needed here. At\r
58 > first glance, just using `notmuch search lastmod:UUID..' looks good\r
59 > enough to get all changed messages since UUID. Indeed, it's not entirely\r
60 > clear to me under what conditions just using this query causes problems.\r
61 > Moreover, it would be quite nice and intuitive if that query did the job\r
62 > without having to constrain the database revision manually as well.\r
63 \r
64 There are two notions of revision here, and I agree the naming could be\r
65 clearer. I blame Austin ;).\r
66 \r
67 --db-revision refers to the major-revision/epoch ; this is only changed\r
68   e.g. when the the database is re-created from scratch.\r
69 \r
70 lastmod:a..b  refers to integers that increase with every database operation.\r
71 \r
72 Maybe --db-revision should be called --db-uuid ; this is at least\r
73 consistent with the library API.\r
74 \r
75 In answer to why it's needed, the database changing UUID signals any\r
76 externally stored modification information (e.g. for incremental\r
77 backups) is now invalid.\r
78 \r
79 d\r