unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Matthew Lear <matt@bubblegen.co.uk>
To: Jani Nikula <jani@nikula.org>
Cc: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>
Subject: Re: Inspired but need help searching folder names containing spaces
Date: Fri, 27 Feb 2015 07:50:16 +0000	[thread overview]
Message-ID: <79D823A8-925A-478E-9734-9702C311A4F8@bubblegen.co.uk> (raw)
In-Reply-To: <87zj88wjgy.fsf@nikula.org>


> On 20 Feb 2015, at 18:01, Jani Nikula <jani@nikula.org> wrote:
> 
>> On Fri, 20 Feb 2015, Matthew Lear <matt@bubblegen.co.uk> wrote:
>> A couple of others things have surprised me, though. Using the date search
>> option, such as date:"today" or date:"yesterday", hasn't quite thrown up
>> what I expected. Searching with date:"today" shows up no results (which I
>> know is wrong) and searching with date:"yesterday" shows up a handful of
>> emails all from the same person, in different threads which all arrived on
>> a day in May 2014... Got to be a bug there somewhere :-D
> 
> This is a known limitation in the date: prefix queries. You have to
> specify it as a range, for example date:today..today (from the beginning
> of today until the end of today). If the underlying Xapian search engine
> is not given a range expression (with the "..") it searches for the
> words "date today" without punctuation, matching whatever it matches,
> and notmuch does not even get an error for it.

Thanks. Explains everything. Any thoughts on searching on 'to' only? I'm not sure if this is also related to what Xapian needs to be provided with. If not, and if only searching in the to, cc and bcc fields of the header is possible, maybe we could consider adopting and integrating case sensitive syntax in notmuch such as TO:me rather than to:me..?
--  Matt

  reply	other threads:[~2015-02-27  8:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-17 22:04 Inspired but need help searching folder names containing spaces Matthew Lear
2015-02-18  7:56 ` David Bremner
2015-02-20 16:53   ` Matthew Lear
2015-02-20 18:01     ` Jani Nikula
2015-02-27  7:50       ` Matthew Lear [this message]
2015-02-28  9:07         ` David Bremner
2015-02-28 22:04           ` David Bremner

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=79D823A8-925A-478E-9734-9702C311A4F8@bubblegen.co.uk \
    --to=matt@bubblegen.co.uk \
    --cc=jani@nikula.org \
    --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).