From: Austin Clements <amdragon@MIT.EDU>
To: Damien Cassou <damien.cassou@gmail.com>
Cc: notmuch@notmuchmail.org
Subject: Re: Searching from a folder
Date: Sat, 29 Sep 2012 12:12:18 -0400 [thread overview]
Message-ID: <20120929161158.GX26662@mit.edu> (raw)
In-Reply-To: <CA+y5ggh-PFtHsRgpdXje9z2gsrsonMNi0gqDTfpQ42jXNmJ3dg@mail.gmail.com>
Quoth Damien Cassou on Sep 29 at 10:57 am:
> Hi,
>
> I can't make notmuch search return the list of mails in [Gmail]
> folders for a particular mailbox:
>
> ~ $ notmuch search folder:"[Gmail].All Mail"
> ~ $ notmuch search folder:[Gmail].Important
You need to properly escape these, both for the shell and for Xapian.
Try,
$ notmuch search 'folder:"[Gmail].All Mail"'
$ notmuch search 'folder:"[Gmail].Important"'
The single quotes are necessary to get the inner quoting through to
Xapian (lest the shell strip them away before notmuch even gets a hold
of its arguments) and the double quotes are necessary because folder
is a "probabilistic prefix", and one of many consequences of that is
that "folder:" won't be parsed as a prefix if it's followed by an
unusual character like '['.
next prev parent reply other threads:[~2012-09-29 16:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-29 8:57 Searching from a folder Damien Cassou
2012-09-29 10:58 ` Jani Nikula
2012-09-29 13:17 ` Damien Cassou
2012-09-29 16:12 ` Austin Clements [this message]
2012-10-01 9:42 ` Damien Cassou
2012-10-01 12:16 ` Austin Clements
2012-10-01 15:01 ` Damien Cassou
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=20120929161158.GX26662@mit.edu \
--to=amdragon@mit.edu \
--cc=damien.cassou@gmail.com \
--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).