--- /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 B9F056DE17DD\r
+ for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 05:57:52 -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 L90iNwty3OUc for <notmuch@notmuchmail.org>;\r
+ Mon, 10 Aug 2015 05:57:51 -0700 (PDT)\r
+Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
+ [209.85.212.179])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id BD1826DE0244\r
+ for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 05:57:50 -0700 (PDT)\r
+Received: by wicne3 with SMTP id ne3so134840297wic.1\r
+ for <notmuch@notmuchmail.org>; Mon, 10 Aug 2015 05:57:49 -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=rWLAZme0IC0gQkoSTJAuBGah4CblVBMkoG6eIk9mqIA=;\r
+ b=X/vNIM/x8oSawpGpB/A2yEZz+PxURNVWvXgRqPswdNn3aOG5qPdjboG69uXI5VYsQY\r
+ oQIvqJmSIdiRWJ03X1ScmXP4rql83mwzwukPnu0pO33Kc0+4zD4C3HWDiy1r0OpzFhop\r
+ WZbDIn6QnaXIgb6/JTZdrWFW2gszVYsX+Lf2A=\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=rWLAZme0IC0gQkoSTJAuBGah4CblVBMkoG6eIk9mqIA=;\r
+ b=lBHAZbXG8IkPMK6BhQY4OGw0vnHaV2ECITf2Mwh1Wwgc33eIzHB5Ip8RfNYdCBfqTr\r
+ r2P8YszoQJo9xSPB+A16fsHP2fwVwh6F5OBBeSNDRzRHKFeEYFciYNEYgH2sElaKoVmz\r
+ EyW7dVnWcENaNohcfydNJFxuVIJERuUUrWRxYCoYmTCHEWLZ5YqSxVqukvn5FjvWZSIH\r
+ gR4i5FO64FcYFQk1kCuqcL8c1ikbsbgOKTVeyEHs7LPnrB9/VWcPTti51TRuhBz/YTXA\r
+ bK9PhhDromuY+YoAf+dE2ltb2tX7zjQGOOzI5tjia0j4qzV4dqcxERmwOszoeeKBMbu4\r
+ dmCw==\r
+X-Gm-Message-State:\r
+ ALoCoQmIwIp5IVY8NHdcC5rN+S5jpY6wdWTZhWFhhThlge/lKg40NWA1y+SI5vddbLoZxglvI5x2\r
+X-Received: by 10.180.21.200 with SMTP id x8mr21967985wie.59.1439211468813;\r
+ Mon, 10 Aug 2015 05:57:48 -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 fa8sm13700582wib.14.2015.08.10.05.57.45\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Mon, 10 Aug 2015 05:57:47 -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: <87r3nbl6p3.fsf@maritornes.cs.unb.ca>\r
+References: <1439112285-6681-1-git-send-email-david@tethera.net>\r
+ <1439112285-6681-5-git-send-email-david@tethera.net>\r
+ <87fv3rtray.fsf@schoepe.localhost> <87r3nbl6p3.fsf@maritornes.cs.unb.ca>\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 14:57:42 +0200\r
+Message-ID: <87d1yvti61.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 12:57:52 -0000\r
+\r
+On Mon, 10 Aug 2015 13:32 +0200, David Bremner wrote:\r
+> So compacting is in fact a bit of a strange case, it preserves the\r
+> lastmod counters (because those are just terms on documents), but not\r
+> the uuid. This means from notmuch point of view have no programmatic way\r
+> to know that we can trust the lastmod data, i.e. no way to distinguish a\r
+> previous notmuch-compact from "notmuch dump && rm the database &&\r
+> notmuch new && notmuch restore". On the other hand, I _think_ we could\r
+> promise the user that lastmod data is preserved by compacting; they\r
+> would just have to tell whatever external tool to ignore uuid errors and\r
+> perhaps set the new uuid.\r
+\r
+Yeah, I think it's reasonable to assume that if the user will delete and\r
+recreate the database, they will also perform the necessary\r
+reinitialization of whatever tool makes use of lastmod / UUID. I guess\r
+this also means that tools often only care about lastmod values and not\r
+the UUID, to allow for compacting without thinking the database is\r
+completely different now.\r
+\r
+Another option is to include lastmod values in the output of\r
+notmuch-dump. Doing that in a clean way might be hard though and I think\r
+this shouldn't be part of this series (which looks fine to me now).\r
+\r
+Best regards,\r
+Daniel\r