Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last modification

Subject: Re: [PATCH 6/6] lib: Add "lastmod:" queries for filtering by last modification

Date: Fri, 07 Aug 2015 10:16:19 +0200

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Daniel Schoepe


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

Thread: