--- /dev/null
+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 70B306DE1552\r
+ for <notmuch@notmuchmail.org>; Sat, 15 Aug 2015 00:21:59 -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 ZgXTABtnE82t for <notmuch@notmuchmail.org>;\r
+ Sat, 15 Aug 2015 00:21:57 -0700 (PDT)\r
+Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com\r
+ [209.85.212.169])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id B7AC56DE1422\r
+ for <notmuch@notmuchmail.org>; Sat, 15 Aug 2015 00:21:56 -0700 (PDT)\r
+Received: by wicne3 with SMTP id ne3so34836435wic.0\r
+ for <notmuch@notmuchmail.org>; Sat, 15 Aug 2015 00:21:55 -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=DWGn9Ot5xGa2TEnU9xFa5K3aXywETUDxrzI1f+/+K4g=;\r
+ b=RHv0u7w4rqDDnR5SdsmlImkDTVvVH8G2gpwDfbXxed5G0JXZNsHQhSN7lylLDZ49EN\r
+ dwy4pVNPx//JOBD0ZOJtZRaOvlY4gQqGAf0Qp5ozZ9eVLLPeXOHzyGENh/jSnxCJYY5/\r
+ /ZT9yt8yz0tX7umqgS7sBjxtodXE4T3Zu2Ucc=\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=DWGn9Ot5xGa2TEnU9xFa5K3aXywETUDxrzI1f+/+K4g=;\r
+ b=S7aZO3aBHZugQGZHGQR45tbj7vKZwCorXODsC9m9rOlMmVvNJBL7KvdqqcWK2FTPf/\r
+ FdaMUp76VHHPgxluhHewF9GagSMrIkShvVKkoLqfe0rk3k0em4MIeFrKv50Jw9XDBAOV\r
+ Nz/jkoIPoiI0ETu5J6VaE5BMvx0yG1FexsKjNTGEylatF02pTgUIwuXjAe9Dp2WOPCfw\r
+ KSeFLz1XRdqp2YUYHANEHe7C1UCO/d2bZBJ53e2AExD2Z2NjmLT+IMaioxbPLOHs2FCL\r
+ 12ESUcEs/phxBwg39rVIXqRip+gaoKOwQenGY3v5kZEdTXs0ymOu3s2u6y3h+qzODK2F\r
+ gl4Q==\r
+X-Gm-Message-State:\r
+ ALoCoQmc/VllZwoqYjdLe/jGj70GEqIot5UFnjzIpzJj1PJJdVJdCSrzvh0cqs1C2fVMVfogiWJO\r
+X-Received: by 10.194.58.130 with SMTP id r2mr7785256wjq.72.1439623314826;\r
+ Sat, 15 Aug 2015 00:21:54 -0700 (PDT)\r
+Received: from localhost (ip-80-226-24-12.vodafone-net.de. [80.226.24.12])\r
+ by smtp.gmail.com with ESMTPSA id bg9sm3005727wib.16.2015.08.15.00.21.52\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 15 Aug 2015 00:21:53 -0700 (PDT)\r
+From: Daniel Schoepe <daniel@schoepe.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 3/5] cli/count: add --lastmod\r
+In-Reply-To: <1439570878-15165-4-git-send-email-david@tethera.net>\r
+References: <1439570878-15165-1-git-send-email-david@tethera.net>\r
+ <1439570878-15165-4-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.20.2+64~g9f61b4c (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Sat, 15 Aug 2015 09:21:49 +0200\r
+Message-ID: <878u9dyq2a.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: Sat, 15 Aug 2015 07:21:59 -0000\r
+\r
+On Fri, 14 Aug 2015 18:47 +0200, David Bremner wrote:\r
+> + ``--lastmod``\r
+> + Append lastmod (counter for number of database updates) and UUID\r
+> + to the output. lastmod values are only comparable between databases\r
+> + with the same UUID.\r
+\r
+Sorry to keep harping on this, but I'm not entirely happy with the way\r
+we handle notmuch-compact here (and in the other commit that mentions\r
+compacting explicitly). Given that lastmod values (and pretty much\r
+everything else) aren't affected by compacting, would it perhaps make\r
+sense to copy the previous UUID to the newly compacted database?\r
+\r
+Given that a compacted database is "indistinguishable" from the previous\r
+non-compacted database, we may want to signal that it's still the "same\r
+database". Is there a case where compacting actually makes a difference\r
+to anything making use of lastmod values?\r
+\r
+Best regards,\r
+Daniel\r