Re: Strange match to my query
authorJameson Rollins <jrollins@finestructure.net>
Fri, 25 Feb 2011 18:19:21 +0000 (10:19 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:56 +0000 (09:37 -0800)
50/442e77ea27b4b295bbee9c09ef695d91790e58 [new file with mode: 0644]

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