Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last modification
authorDaniel Schoepe <daniel@schoepe.org>
Fri, 7 Aug 2015 08:16:19 +0000 (10:16 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:17 +0000 (14:49 -0700)
39/acfc04c05075f64aee7a7fa4f88977342ccd00 [new file with mode: 0644]

diff --git a/39/acfc04c05075f64aee7a7fa4f88977342ccd00 b/39/acfc04c05075f64aee7a7fa4f88977342ccd00
new file mode 100644 (file)
index 0000000..20a7db9
--- /dev/null
@@ -0,0 +1,95 @@
+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 887106DE1405\r
+ for <notmuch@notmuchmail.org>; Fri,  7 Aug 2015 01:16:29 -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 Z09UirnAm4WF for <notmuch@notmuchmail.org>;\r
+ Fri,  7 Aug 2015 01:16:27 -0700 (PDT)\r
+Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com\r
+ [209.85.212.176])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 7CA9B6DE1401\r
+ for <notmuch@notmuchmail.org>; Fri,  7 Aug 2015 01:16:27 -0700 (PDT)\r
+Received: by wibxm9 with SMTP id xm9so55484244wib.1\r
+ for <notmuch@notmuchmail.org>; Fri, 07 Aug 2015 01:16:24 -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=Ql+shGVdrFwUVA8FeM9a5fdUqjqKQZBzdHVPpkim7Js=;\r
+ b=XZ7TFH+I4jRyOI5jzPzHs5S1qo21LP2OAg12+YO+vAcweFxUFuWi5Yn9cs+KA+ukuv\r
+ jwh4osHwTSllQKFfDeXwUfE00oFJCuAbjptT7IGPOcB3PkH8TsyYTtC1MaPFllWFSA0j\r
+ D/Yvg+tqMgew0ytT6yjFkrm7pPhvYLBdbFq5Y=\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=Ql+shGVdrFwUVA8FeM9a5fdUqjqKQZBzdHVPpkim7Js=;\r
+ b=mW4MzU7rXSEEMbGXr6ApjmMQbKBvhmmBB3syVW9R8fLYULtMOML6jMSeteX/Brp+oq\r
+ FcM625+DTB7hsrEuMH8B30Ih1fkWI+m+77SRMczIYh20p9fWxMucTkQ+T7r5Nd8CG/x0\r
+ 1gmOjcKrI51XDeS523RFae38jecPIzfNusyrBEaYwDqhcWvH80gNF4W+Ai4CqwmkShMg\r
+ FJOTNd5mEiB1r+cbklSzi1OUo3lHDcVjePNYX7JeaOYSwZ1i5UzWSnQW5I3PUtQZMzXG\r
+ NkuSW9HBSxQTmuiGv73Qphthb2KBzEfPT+3G+z1IhFo3OZjDjq1IrYXoJCyq67RMN3Bi\r
+ ZU7g==\r
+X-Gm-Message-State:\r
+ ALoCoQkVrjLx8JMJkjKSqxQDm5dyk1YpzNJtQtvxPpMRVe1rQsQIzN8ZhQhooqQ5HG0NSmBR3o3+\r
+X-Received: by 10.194.78.84 with SMTP id z20mr13000972wjw.141.1438935384628;\r
+ Fri, 07 Aug 2015 01:16:24 -0700 (PDT)\r
+Received: from localhost (ip-80-226-24-9.vodafone-net.de. [80.226.24.9])\r
+ by smtp.gmail.com with ESMTPSA id l2sm7272920wib.11.2015.08.07.01.16.22\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Fri, 07 Aug 2015 01:16:23 -0700 (PDT)\r
+From: Daniel Schoepe <daniel@schoepe.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last\r
+ modification\r
+In-Reply-To: <1433525318-23756-7-git-send-email-david@tethera.net>\r
+References: <1432936375-astroid-4-0i1n6yczs2-1520@strange>\r
+ <1433525318-23756-1-git-send-email-david@tethera.net>\r
+ <1433525318-23756-7-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Fri, 07 Aug 2015 10:16:19 +0200\r
+Message-ID: <8737zvjyy4.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: Fri, 07 Aug 2015 08:16:29 -0000\r
+\r
+On Fri, 05 Jun 2015 19:28 +0200, David Bremner wrote:\r
+> +The **lastmod:** prefix can be used to restrict the result by the\r
+> +database revision number of when messages were last modified (tags\r
+> +were added/removed or filenames changed).  This is usually used in\r
+> +conjunction with the **--db-revision** argument to **notmuch search**\r
+> +to find messages that have changed since an earlier query.\r
+\r
+It might be helpful to describe why --db-revision is needed here. At\r
+first glance, just using `notmuch search lastmod:UUID..' looks good\r
+enough to get all changed messages since UUID. Indeed, it's not entirely\r
+clear to me under what conditions just using this query causes problems.\r
+Moreover, it would be quite nice and intuitive if that query did the job\r
+without having to constrain the database revision manually as well.\r
+\r
+Best regards,\r
+Daniel\r