From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0667B431FB6 for ; Fri, 25 Feb 2011 12:46:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-DHUd3CM1pA for ; Fri, 25 Feb 2011 12:46:07 -0800 (PST) Received: from paneer.cc.columbia.edu (paneer.cc.columbia.edu [128.59.29.4]) by olra.theworths.org (Postfix) with ESMTP id 19C5A431FB5 for ; Fri, 25 Feb 2011 12:46:07 -0800 (PST) Received: from servo.finestructure.net (cpe-76-166-146-235.socal.res.rr.com [76.166.146.235]) (user=jgr2110 author=jrollins@servo.finestructure.net mech=PLAIN bits=0) by paneer.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p1PKk36Z001377 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 25 Feb 2011 15:46:04 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.72) (envelope-from ) id 1Pt2GH-0005MA-41; Fri, 25 Feb 2011 10:19:29 -0800 From: Jameson Rollins To: Mark Anderson , notmuch@notmuchmail.org Subject: Re: Strange match to my query In-Reply-To: <3wd4o8wa7fx.fsf@testarossa.amd.com> References: <3wd4o8wa7fx.fsf@testarossa.amd.com> User-Agent: Notmuch/0.5-102-ge86ac1d (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Fri, 25 Feb 2011 10:19:21 -0800 Message-ID: <878vx4vuxi.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 20:46:08 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 25 Jan 2011 16:29:22 -0700, Mark Anderson = wrote: > Apparently matching on email addresses doesn't work the way I hoped. >=20 > While debugging why my to:x@y.com search was matching far too many > entries, I whittled it down to this: >=20 > WORD1=3Dhello > WORD2=3Dgoodbye > MSGID=3Djunk$(date +%s) > TESTDIR=3D$(notmuch config get database.path)/.tmp/new > TESTMAIL=3D$TESTDIR/$MSGID:2, >=20 > mkdir -p $TESTDIR >=20 > echo Testcase for $WORD1@$WORD2, msgid: $MSGID@junk.com >=20 > 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> >=20 > Not empty body.=3D >=20 > " > $TESTMAIL >=20 > notmuch new > notmuch search --output=3Dfiles to:$WORD1@$WORD2 > notmuch search --output=3Dfiles to:\"$WORD1@$WORD2\" >=20 > Why does that match, but this doesn't? >=20 > notmuch search --output=3Dfiles to:\'$WORD1@$WORD2\' Hey, guys. Reopening an old thread here, found while trying to track down a similar problem. I'm confused why any of these searches should return anything at all. "$WORD1@$WORD2" doesn't actually match either of the addresses in the test message, especially when quoted. The expanded addresses should be: c@hello.com K-R@goodbye.com Why should hello@goodbye match anything? And in fact it doesn't for me if I recreate the same setup. Am I missing something? jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJNZ/KpAAoJEO00zqvie6q8IEsP/RpnHtDuWOJm4b6hENK09J8O vF8Uc5Nc8kfR3bZg9jwTaXJ8qncUjh4tKAtxY924O/7j6Jm+hsVzSRZHgoc5F0qn 6hYCXt9xN8982zAXLz9v3tGHI/xTtObP3CqniPp+/fxHs8k3Gss1gdLapH+c4Efc PhnPNSjDNa39DItOpyNGVs8iU7m0oZWPEcR+54hiFIvCBIHMPZyJVX2djVkmyhw0 gtcjfXDHp0+GK+NpCZpbXLuYr86VdFr//HsGVMh5ieWnRGhHObV+WiM/EwVJBmIz xfJN6M294ZRTB/CIbA5OJDybWHu4BmJCTCJxrJlhY0WIHiIx9LYeJQfFXGoeg6Qr 3xFHJPcPG6J89GubDmcpLx/mQr2Sop1q2uwYfvbpmFlyuz/pzbxGlA6g1EuFBg8R sQ2ZRkmnZW9OmkEDHvVNs/D9nF0wiSr8ed1dS6eeN+iD4n7j4VcJzLnWW6Xq4knv pS7gFEQ8PXxL5wdU2jpe5DGcKRkHZNkBS3g8f6n+54nYmC2/G2FpLfx6Lv4Raw3h NO3aSxg9X4XCFElNziFWcHqOQB7WSCv6x8tK8ciDjw7py21wqWArrv+i3XdQsqX6 LfvOczZfTzVxNHwSKhU+uukuhHN8pU2SLNlFAphaOlTsj3iz7tHis8+Q77zVLqVu siTYaOTIM2Iqb8QBiK6U =qCbg -----END PGP SIGNATURE----- --=-=-=--