unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jani Nikula <jani@nikula.org>
To: David Belohrad <david@belohrad.ch>, notmuch <notmuch@notmuchmail.org>
Subject: Re: how the date query works?
Date: Mon, 20 May 2013 16:19:41 +0200	[thread overview]
Message-ID: <87mwrpvima.fsf@nikula.org> (raw)
In-Reply-To: <uaxli79u66o.fsf@beesknees.cern.ch>

On Mon, 20 May 2013, David Belohrad <david@belohrad.ch> wrote:
> When I open in emacs search, and I type 'date:today', some output
> appears, but not the one I would expect.

The date: search expects a Xapian range expression, which requires ".."
to be present in the query. For example, date:today..today from
beginning of today to end of today, which I believe is what you're
after. Half open ranges are okay, too, so assuming you don't have much
mail from the future, simply date:today.. will do.

Unfortunately, due to a limitation in Xapian, we can't flag an error or
do the right thing given a date: search without the range expression
".."

> Is there any kind of manual how to use it? I'm of course particularly
> interested in 'today', 'yesterday', 'last week', 'last month' :)

The search terms manual page, 'man notmuch-search-terms', which is also
available at http://notmuchmail.org/manpages/notmuch-search-terms-7/
gives a pretty good summary on the date search, including the
limitations.

HTH,
Jani.

  parent reply	other threads:[~2013-05-20 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20 13:33 how the date query works? David Belohrad
2013-05-20 14:11 ` David Bremner
2013-05-20 14:19 ` Jani Nikula [this message]
2013-05-21 14:29   ` David Belohrad

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=87mwrpvima.fsf@nikula.org \
    --to=jani@nikula.org \
    --cc=david@belohrad.ch \
    --cc=notmuch@notmuchmail.org \
    /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).