unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: Austin Clements <amdragon@mit.edu>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH v2] test/search: add check for slightly trick search
Date: Wed, 4 May 2011 23:54:05 +0300	[thread overview]
Message-ID: <BANLkTimoAmxQk8GgM73PmuB6fjbAF0Hefg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>

On Wed, May 4, 2011 at 11:46 PM, Austin Clements <amdragon@mit.edu> wrote:
> On Wed, May 4, 2011 at 4:26 PM, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
>> +output=$(notmuch search from:'search-by-from@' | notmuch_search_sanitize)
>
> I don't think this does what you think it does.  Xapian only
> understands double quotes around phrases, not single quotes.
> Furthermore, a single quote after a prefix prevents that token from
> acting as a prefix, so you search is finding messages containing the
> *word* "from" and the phrase "search by from" *anywhere* (which is a
> phrase not because of the quotes, but because of the hyphens).
>
> The test results happen to be the same if you use single quotes or
> double quotes, but for very different reasons.

Ok, how about:
search from:search-by-from@

Would that be better?

-- 
Felipe Contreras

  reply	other threads:[~2011-05-04 20:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-04 20:26 [PATCH v2] test/search: add check for slightly trick search Felipe Contreras
2011-05-04 20:46 ` Austin Clements
2011-05-04 20:54   ` Felipe Contreras [this message]
2011-05-04 21:26     ` Austin Clements
2011-05-04 21:55       ` [PATCH v3] test/search: add check for slightly tricky search Felipe Contreras

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=BANLkTimoAmxQk8GgM73PmuB6fjbAF0Hefg@mail.gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=amdragon@mit.edu \
    --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).