unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Strange match to my query
@ 2011-01-25 23:29 Mark Anderson
  2011-01-26  0:51 ` Austin Clements
  2011-02-25 18:19 ` Jameson Rollins
  0 siblings, 2 replies; 13+ messages in thread
From: Mark Anderson @ 2011-01-25 23:29 UTC (permalink / raw)
  To: notmuch

Hi guys, What's up? ("Notmuch")

Apparently matching on email addresses doesn't work the way I hoped.

While debugging why my to:x@y.com search was matching far too many
entries, I whittled it down to this:

WORD1=hello
WORD2=goodbye
MSGID=junk$(date +%s)
TESTDIR=$(notmuch config get database.path)/.tmp/new
TESTMAIL=$TESTDIR/$MSGID:2,

mkdir -p $TESTDIR

echo Testcase for $WORD1@$WORD2, msgid: $MSGID@junk.com

echo "From: nobody@nobody.com
To: c@${WORD1}.com, K-R@${WORD2}.com
Date: Mon, 24 Jan 2011 23:41:34 -0600
Subject: Error
Message-ID: <$MSGID@junk.com>

Not empty body.=

" > $TESTMAIL

notmuch new
notmuch search --output=files to:$WORD1@$WORD2
notmuch search --output=files to:\"$WORD1@$WORD2\"

Why does that match, but this doesn't?

notmuch search --output=files to:\'$WORD1@$WORD2\'

Apparently single quotes are the only quote for Xapian's parser?

I guess this is a strong vote for the quick integration of the custom
parser with optimization passes that turn emails into phrases that can't
match across multiple emails.

This was just an egregious example of notmuch giving me notmuch of what
I wanted, or actually, far too much of what I didn't want.

Thanks,
-Mark

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-04-19  6:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25 23:29 Strange match to my query Mark Anderson
2011-01-26  0:51 ` Austin Clements
2011-01-26  2:19   ` Carl Worth
2011-01-26  5:59     ` Carl Worth
2011-01-26 17:02       ` Mark Anderson
2011-02-25 18:19 ` Jameson Rollins
2011-02-25 20:57   ` Mark Anderson
2011-02-25 21:29     ` Jameson Rollins
2011-03-01 23:00       ` Mark Anderson
2011-03-01 23:15         ` Jameson Rollins
2011-03-01 23:40           ` Mark Anderson
2011-04-14  7:32           ` Florian Friesdorf
2011-04-19  6:21             ` Jameson Graef Rollins

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).