From: Daniel Schoepe Date: Fri, 7 Aug 2015 08:16:19 +0000 (+0200) Subject: Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last modification X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47ac569ca5a4e14c54611a0093869576e1b3f956;p=notmuch-archives.git Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last modification --- diff --git a/39/acfc04c05075f64aee7a7fa4f88977342ccd00 b/39/acfc04c05075f64aee7a7fa4f88977342ccd00 new file mode 100644 index 000000000..20a7db992 --- /dev/null +++ b/39/acfc04c05075f64aee7a7fa4f88977342ccd00 @@ -0,0 +1,95 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 887106DE1405 + for ; Fri, 7 Aug 2015 01:16:29 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.11 +X-Spam-Level: +X-Spam-Status: No, score=-0.11 tagged_above=-999 required=5 tests=[AWL=0.097, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id Z09UirnAm4WF for ; + Fri, 7 Aug 2015 01:16:27 -0700 (PDT) +Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com + [209.85.212.176]) + by arlo.cworth.org (Postfix) with ESMTPS id 7CA9B6DE1401 + for ; Fri, 7 Aug 2015 01:16:27 -0700 (PDT) +Received: by wibxm9 with SMTP id xm9so55484244wib.1 + for ; Fri, 07 Aug 2015 01:16:24 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type; + bh=Ql+shGVdrFwUVA8FeM9a5fdUqjqKQZBzdHVPpkim7Js=; + b=XZ7TFH+I4jRyOI5jzPzHs5S1qo21LP2OAg12+YO+vAcweFxUFuWi5Yn9cs+KA+ukuv + jwh4osHwTSllQKFfDeXwUfE00oFJCuAbjptT7IGPOcB3PkH8TsyYTtC1MaPFllWFSA0j + D/Yvg+tqMgew0ytT6yjFkrm7pPhvYLBdbFq5Y= +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:in-reply-to:references + :user-agent:date:message-id:mime-version:content-type; + bh=Ql+shGVdrFwUVA8FeM9a5fdUqjqKQZBzdHVPpkim7Js=; + b=mW4MzU7rXSEEMbGXr6ApjmMQbKBvhmmBB3syVW9R8fLYULtMOML6jMSeteX/Brp+oq + FcM625+DTB7hsrEuMH8B30Ih1fkWI+m+77SRMczIYh20p9fWxMucTkQ+T7r5Nd8CG/x0 + 1gmOjcKrI51XDeS523RFae38jecPIzfNusyrBEaYwDqhcWvH80gNF4W+Ai4CqwmkShMg + FJOTNd5mEiB1r+cbklSzi1OUo3lHDcVjePNYX7JeaOYSwZ1i5UzWSnQW5I3PUtQZMzXG + NkuSW9HBSxQTmuiGv73Qphthb2KBzEfPT+3G+z1IhFo3OZjDjq1IrYXoJCyq67RMN3Bi + ZU7g== +X-Gm-Message-State: + ALoCoQkVrjLx8JMJkjKSqxQDm5dyk1YpzNJtQtvxPpMRVe1rQsQIzN8ZhQhooqQ5HG0NSmBR3o3+ +X-Received: by 10.194.78.84 with SMTP id z20mr13000972wjw.141.1438935384628; + Fri, 07 Aug 2015 01:16:24 -0700 (PDT) +Received: from localhost (ip-80-226-24-9.vodafone-net.de. [80.226.24.9]) + by smtp.gmail.com with ESMTPSA id l2sm7272920wib.11.2015.08.07.01.16.22 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Fri, 07 Aug 2015 01:16:23 -0700 (PDT) +From: Daniel Schoepe +To: David Bremner , notmuch@notmuchmail.org +Subject: Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last + modification +In-Reply-To: <1433525318-23756-7-git-send-email-david@tethera.net> +References: <1432936375-astroid-4-0i1n6yczs2-1520@strange> + <1433525318-23756-1-git-send-email-david@tethera.net> + <1433525318-23756-7-git-send-email-david@tethera.net> +User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-unknown-linux-gnu) +Date: Fri, 07 Aug 2015 10:16:19 +0200 +Message-ID: <8737zvjyy4.fsf@schoepe.localhost> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 07 Aug 2015 08:16:29 -0000 + +On Fri, 05 Jun 2015 19:28 +0200, David Bremner wrote: +> +The **lastmod:** prefix can be used to restrict the result by the +> +database revision number of when messages were last modified (tags +> +were added/removed or filenames changed). This is usually used in +> +conjunction with the **--db-revision** argument to **notmuch search** +> +to find messages that have changed since an earlier query. + +It might be helpful to describe why --db-revision is needed here. At +first glance, just using `notmuch search lastmod:UUID..' looks good +enough to get all changed messages since UUID. Indeed, it's not entirely +clear to me under what conditions just using this query causes problems. +Moreover, it would be quite nice and intuitive if that query did the job +without having to constrain the database revision manually as well. + +Best regards, +Daniel