Re: [PATCH 4/5] cli: add global option "--uuid"
authorDaniel Schoepe <daniel@schoepe.org>
Mon, 10 Aug 2015 09:40:21 +0000 (11:40 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:18 +0000 (14:49 -0700)
ce/0361e9945e5c080be7747597ac1027bd50abca [new file with mode: 0644]

diff --git a/ce/0361e9945e5c080be7747597ac1027bd50abca b/ce/0361e9945e5c080be7747597ac1027bd50abca
new file mode 100644 (file)
index 0000000..42345d9
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <daniel@schoepe.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 3D3C56DE099D\r
+ for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 02:40:31 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.11\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.11 tagged_above=-999 required=5 tests=[AWL=0.097, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, SPF_PASS=-0.001]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 9puF84tGk56y for <notmuch@notmuchmail.org>;\r
+ Mon, 10 Aug 2015 02:40:29 -0700 (PDT)\r
+Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com\r
+ [209.85.212.177])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id F07C36DE0244\r
+ for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 02:40:28 -0700 (PDT)\r
+Received: by wijp15 with SMTP id p15so128138393wij.0\r
+ for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 02:40:26 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
+ h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+ :mime-version:content-type;\r
+ bh=NM5vOvefEmGvwLmbUPmyv4Lt4vIzRMETzJBnV9Ep0kY=;\r
+ b=NMerkH3ZruGDymV75CUqw4AtKTDxqvv8x1NEXz0VoUB/R6Cw7Y7OB1p6o8Fjqu2u4H\r
+ FYq/ykeoA+cBGUklYyakWvsbJ3CITAYm+asJg7ziAVLWBzRnYlfQWEVqUgSXSeiXy6bP\r
+ bFlhVjkvXc8jYIajpTMWOAE1F/JhcrmawC3QE=\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version:content-type;\r
+ bh=NM5vOvefEmGvwLmbUPmyv4Lt4vIzRMETzJBnV9Ep0kY=;\r
+ b=cLEk5UbBfYnJPHRoe7uewu9W2ap03Fvyz73HuCaCMAJdKnmeY4nGPAs7QYj81g6OVZ\r
+ M2+dWuaeJcAihSO1//qR1D7HmaZwkpA0vnxW3zhuP00pdkwuXrzmG6FblgeLds+7+WSy\r
+ dkNvre1vMeo5hlOMJyrGC2hoWH6GYWWuDbmudWF7W/rGgD3t5O/dV6bmawsbD84XZpX7\r
+ MXhyFe/b9evLBMD7EqIedCuUMyBczSCf4WWuj6Lw7r3bAumFeSk9WAEJEFeMdWeoTyRo\r
+ HfPUGxrNImsGazCMyCXy/hjfYBKWsh+hgg8U2C7ZweGZ3BdIdJ9l34v5Zk4AqERsB/X5\r
+ 1njw==\r
+X-Gm-Message-State:\r
+ ALoCoQlpHEhqeV3uUrvJep6/MvbEHfKSrAFvuAz9/UFxyXXg9wSiuAqQB/gki4UDHsX+TnjF9jbv\r
+X-Received: by 10.194.172.130 with SMTP id bc2mr46488639wjc.85.1439199626796; \r
+ Mon, 10 Aug 2015 02:40:26 -0700 (PDT)\r
+Received: from localhost (ip-80-226-24-8.vodafone-net.de. [80.226.24.8])\r
+ by smtp.gmail.com with ESMTPSA id fs8sm1649964wib.0.2015.08.10.02.40.24\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Mon, 10 Aug 2015 02:40:25 -0700 (PDT)\r
+From: Daniel Schoepe <daniel@schoepe.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 4/5] cli: add global option "--uuid"\r
+In-Reply-To: <1439112285-6681-5-git-send-email-david@tethera.net>\r
+References: <1439112285-6681-1-git-send-email-david@tethera.net>\r
+ <1439112285-6681-5-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.20.2+58~g20ed908 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Mon, 10 Aug 2015 11:40:21 +0200\r
+Message-ID: <87fv3rtray.fsf@schoepe.localhost>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 10 Aug 2015 09:40:31 -0000\r
+\r
+On Sun, 09 Aug 2015 11:24+0200, David Bremner wrote:\r
+> +    ``--uuid=HEX``\r
+> +       Enforce that the database UUID (a unique identifier which\r
+> +       persists until e.g. the database is compacted)\r
+> +       is HEX; exit with an error if it is not. This is useful to\r
+> +       detect rollover in modification counts on messages. You can\r
+> +       find this UUID in the first column of output from\r
+> +       ``notmuch count --output=modifications``\r
+\r
+I think it's not entirely clear what the connection between the UUID and\r
+the revisions on messages is. For example, compacting a database\r
+shouldn't make a difference "extensionally", so the naive assumption\r
+might be that the UUID, or, maybe more importantly, the revision counts\r
+don't change.\r
+\r
+For example, if lastmod queries are used to incrementally back up or\r
+synchronize tags, then it doesn't matter if the database got compacted,\r
+all one cares about are the changes to messages' tags since an earlier\r
+point.\r
+\r
+Based on quick experiments, it seems that the revisions don't change\r
+when compacting the database; is this something that the patches\r
+guarantee or a coincidence?\r
+\r
+Best regards,\r
+Daniel\r