[notmuch] strange behavior of indexing of and searching for strings containing '[]'
authorJameson Rollins <jrollins@finestructure.net>
Fri, 5 Feb 2010 16:44:15 +0000 (11:44 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:06 +0000 (09:36 -0800)
a0/9e601c0fb6881509d3c343a62ba7bdfe66e002 [new file with mode: 0644]

diff --git a/a0/9e601c0fb6881509d3c343a62ba7bdfe66e002 b/a0/9e601c0fb6881509d3c343a62ba7bdfe66e002
new file mode 100644 (file)
index 0000000..5bab097
--- /dev/null
@@ -0,0 +1,115 @@
+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 67E20431FBD\r
+       for <notmuch@notmuchmail.org>; Fri,  5 Feb 2010 08:44:19 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -3.806\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-3.806 tagged_above=-999 required=5 tests=[AWL=0.193,\r
+       BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4] autolearn=ham\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 DFjC5dCnhd3A for <notmuch@notmuchmail.org>;\r
+       Fri,  5 Feb 2010 08:44:18 -0800 (PST)\r
+Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
+       by olra.theworths.org (Postfix) with ESMTP id B2A72431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  5 Feb 2010 08:44:18 -0800 (PST)\r
+Received: from servo.finestructure.net (geco.phys.columbia.edu\r
+       [128.59.170.159])\r
+       (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
+       by brinza.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o15GiIuO011689\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
+       for <notmuch@notmuchmail.org>; Fri, 5 Feb 2010 11:44:18 -0500 (EST)\r
+Received: from jrollins by servo.finestructure.net with local (Exim 4.71)\r
+       (envelope-from <jrollins@finestructure.net>) id 1NdRI2-000303-66\r
+       for notmuch@notmuchmail.org; Fri, 05 Feb 2010 11:44:18 -0500\r
+From: Jameson Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Date: Fri, 05 Feb 2010 11:44:15 -0500\r
+Message-ID: <87636bws2o.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.8\r
+Subject: [notmuch] strange behavior of indexing of and searching for strings\r
+       containing '[]'\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, 05 Feb 2010 16:44:19 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hey, folks.  I've been noticing some strange behavior of notmuch search\r
+results for strings containing '[]'.  Here are some searches for some\r
+exact strings in messages subjects:\r
+\r
+servo:~ 0$ notmuch search subject:'emacs paned UI'\r
+thread:533da424197bb6ba61a42b667d5d8d8f   Wed. 14:12 [2/2] Tad Fisher, Jame=\r
+son Rollins; [notmuch] Emacs paned UI ()\r
+servo:~ 0$=20\r
+\r
+So that's fine and expected.  This however is not:\r
+\r
+servo:~ 0$ notmuch search subject:'[notmuch] emacs paned UI'\r
+thread:5f2cb4b108773a39161b33c86e54f7fd  4 mins. ago [1/1] Jameson Rollins;=\r
+ [notmuch] loss of duplicate messages (inbox)\r
+servo:~ 0$=20\r
+\r
+Not only did it not turn up the message that *does* match that exact\r
+string in it's subject line, it actually turns up a completely different\r
+message that doesn't match the search term at all!\r
+\r
+This search actually turns up both:\r
+\r
+servo:~ 0$ notmuch search subject:'notmuch emacs paned UI'\r
+thread:5f2cb4b108773a39161b33c86e54f7fd  5 mins. ago [1/1] Jameson Rollins;=\r
+ [notmuch] loss of duplicate messages (inbox)\r
+thread:533da424197bb6ba61a42b667d5d8d8f   Wed. 14:12 [2/2] Tad Fisher, Jame=\r
+son Rollins; [notmuch] Emacs paned UI ()\r
+servo:~ 0$=20\r
+\r
+Which is again strange, because the second message does not at all match\r
+that search term.\r
+\r
+Does anyone have any idea what's going on here?  I think I saw mention\r
+of this issue on IRC somewhere, but I thought I should bring it up\r
+explicitly here.  This is definitely some buggy behavior.\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
+iQIcBAEBCAAGBQJLbErfAAoJEO00zqvie6q8LlYP/1pikkmCPC9tzetQ7G5/J8A6\r
+5/IZQC6GvdX2DJrlqozSijUu4Jq2jHZ9veX7S7/VwOyXVfWEaQF1T9PAtPb+crro\r
+YVoP7DRHF4Bxz6TCA6mgrVvZhBOqFICGkEQUTy5Jjy5oQsMv0LaVZ/jpUaeRfVuw\r
+/SL2qopuhu1Dg74Iw32aEx3pPeu1d0gvtDPvym21vAzSDOnRTQn6Ho5a9GaBFtln\r
+Ml9hSMLpALcBPogLr2cacu4SzqWDrYYglwOuR1foJCvOsz65GRAjFOp5KFvU0t8k\r
+meXpu6WZqUxIBZp495/VXMv9MvVcNxUqpGS8oinGXnLFiQS6KGQ3lCff2m/ii2pQ\r
+XeA+pUeQOs8okhkUBn8HZ7i802lQXBs494D2gGeorvj8iY0cQY5CeHYMzGE3ZW5z\r
+XBkGO3oy3/5TzYvMvj1qIOwjXvq9KjRWJmEglYMij3wbnvcl99rNJZwnaYy6JoTW\r
+YgFJQuM05gAUevwbXrZAK3Fm72b+O0q5fKPwCHkPpDlCXTVkrg9EC+F/eNUKz7sD\r
+JJVSSRDP/9K8Md2kN9KYopMgiCQr3loob/4BOvhmR2OqsIkSesngbFXlg9jzw69c\r
+JJX9/caoQJ9Mqj37vlk9TTk1trww/5d6KVMoFwYjM0O1My5OvxA/53viv4yME2qe\r
+DHm9Tb8KJUgs2PC49Jpb\r
+=l4q4\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r