unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jani Nikula <jani@nikula.org>
To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org
Cc: Tomi Ollila <tomi.ollila@iki.fi>
Subject: Re: [PATCH v6 0/9] notmuch search date:since..until query support
Date: Fri, 02 Nov 2012 20:53:15 +0200	[thread overview]
Message-ID: <87d2zv3kh0.fsf@nikula.org> (raw)
In-Reply-To: <87hap76gz9.fsf@steelpick.2x.cz>

On Fri, 02 Nov 2012, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> Just pulled current HEAD and tried
>
> $ notmuch search tag:notmuch and date:"this week"

> notmuch search tag:notmuch and date:'"this week"'

> $ notmuch search tag:notmuch and date:"this week.."

There are two technical limitations at play here, imposed on us by
Xapian. First, Xapian provides us with no way to support the date:
prefix *without* the range operator "..", and worse, AFAICT there's no
way to flag this as an error either. Second, Xapian does not support
spaces in range expression (at least not the last time I checked from
the source) regardless of the amount of quoting or escaping.

These limitations are documented in the DATE AND TIME SEARCH section of
the notmuch-search-terms(7) man page, and that's unfortunately about as
much as we can do about it at the moment.

The workaround is to always have .. in the date: search, and replace
spaces with e.g. '-' or '_'. See the man page for details. The search
you are looking for is either date:this-week..this-week or just
date:this-week..

HTH,
Jani.

      reply	other threads:[~2012-11-02 18:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-30 20:32 [PATCH v6 0/9] notmuch search date:since..until query support Jani Nikula
2012-10-30 20:32 ` [PATCH v6 1/9] build: drop the -Wswitch-enum warning Jani Nikula
2012-10-30 20:32 ` [PATCH v6 2/9] parse-time-string: add a date/time parser to notmuch Jani Nikula
2012-10-30 20:32 ` [PATCH v6 3/9] test: add new test tool parse-time for date/time parser Jani Nikula
2012-10-30 20:32 ` [PATCH v6 4/9] test: add smoke tests for the date/time parser module Jani Nikula
2012-10-30 20:32 ` [PATCH v6 5/9] build: build parse-time-string as part of the notmuch lib and static cli Jani Nikula
2012-10-30 20:32 ` [PATCH v6 6/9] lib: add date range query support Jani Nikula
2012-10-30 20:32 ` [PATCH v6 7/9] test: add tests for date:since..until range queries Jani Nikula
2012-10-30 20:32 ` [PATCH v6 8/9] man: document the " Jani Nikula
2012-10-30 20:32 ` [PATCH v6 9/9] NEWS: date range search support Jani Nikula
2012-10-31  3:17 ` [PATCH v6 0/9] notmuch search date:since..until query support Austin Clements
2012-10-31 11:35 ` Tomi Ollila
2012-10-31 20:21 ` David Bremner
2012-11-02 17:40   ` Michal Sojka
2012-11-02 18:53     ` Jani Nikula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2zv3kh0.fsf@nikula.org \
    --to=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    --cc=sojkam1@fel.cvut.cz \
    --cc=tomi.ollila@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).