From: Tomi Ollila <tomi.ollila@iki.fi>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
David Bremner <david@tethera.net>,
notmuch@notmuchmail.org
Subject: Re: Thread subqueries
Date: Sat, 12 May 2018 16:24:29 +0300 [thread overview]
Message-ID: <m2bmdl2eia.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87603uyzay.fsf@fifthhorseman.net>
On Fri, May 11 2018, Daniel Kahn Gillmor wrote:
> On Fri 2018-05-11 07:15:41 -0300, David Bremner wrote:
>> Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
>>
>>> 0 dkg@alice:~$ notmuch count 'thread:{date:1month..now tag:dkg}'
>>> notmuch count: A Xapian exception occurred
>>> A Xapian exception occurred parsing query: missing } in '{date:1month..now'
>>> Query string was: thread:{date:1month..now tag:dkg}
>>> 1 dkg@alice:~$
>>
>> Pretty sure what you want here is
>>
>> $ notmuch count 'thread:"{date:1month..now tag:dkg}"'
question: how does these differ (processing-wise):
$ notmuch count 'thread:"date:1month..now tag:dkg"'
$ notmuch count 'thread:{date:1month..now tag:dkg}'
$ notmuch count 'thread:"{date:1month..now tag:dkg}"'
understanding the reasons behind these might help to use these in desired
ways (or we could just say use "{...}" to get this to work).
Tomi
> Thanks, yes, that's it. I still find the quoting/assembling rules for
> notmuch queries non-intuitive, but maybe one day i'll wrap my head
> around them some day. I certainly don't have any specific suggestions
> for improvement.
>
> This is a really useful feature, much appreciated!
>
> --dkg
next prev parent reply other threads:[~2018-05-12 13:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-05 16:05 Thread subqueries David Bremner
2018-05-05 16:05 ` [PATCH 1/4] lib: add thread subqueries David Bremner
2018-05-06 17:59 ` Jani Nikula
2018-05-05 16:05 ` [PATCH 2/4] perf-test: add simple test for " David Bremner
2018-05-05 16:05 ` [PATCH 3/4] lib: define specialized get_thread_id for use in thread subquery David Bremner
2018-05-06 18:03 ` Jani Nikula
2018-05-05 16:05 ` [PATCH 4/4] doc: document thread subqueries David Bremner
2018-05-06 18:05 ` Jani Nikula
2018-05-07 12:09 ` Thread subqueries David Bremner
2018-05-07 12:39 ` Gaute Hope
2018-05-11 8:43 ` Daniel Kahn Gillmor
2018-05-11 10:15 ` David Bremner
2018-05-11 15:41 ` Daniel Kahn Gillmor
2018-05-12 13:24 ` Tomi Ollila [this message]
2018-05-12 14:01 ` 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=m2bmdl2eia.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=david@tethera.net \
--cc=dkg@fifthhorseman.net \
--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).