bug report: xapian error for message id with '..'
authorJameson Rollins <jrollins@finestructure.net>
Wed, 28 Apr 2010 12:39:57 +0000 (08:39 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:59 +0000 (09:36 -0800)
a5/154237507ba349325913bf13a15b6df64687e9 [new file with mode: 0644]

diff --git a/a5/154237507ba349325913bf13a15b6df64687e9 b/a5/154237507ba349325913bf13a15b6df64687e9
new file mode 100644 (file)
index 0000000..fa00c5a
--- /dev/null
@@ -0,0 +1,99 @@
+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 7FB314196F0\r
+       for <notmuch@notmuchmail.org>; Wed, 28 Apr 2010 05:40:03 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -4.19\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-4.19 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01]\r
+       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 IdIWPj5HFJa7 for <notmuch@notmuchmail.org>;\r
+       Wed, 28 Apr 2010 05:40:02 -0700 (PDT)\r
+Received: from serrano.cc.columbia.edu (serrano.cc.columbia.edu [128.59.29.6])\r
+       by olra.theworths.org (Postfix) with ESMTP id 94493431FC1\r
+       for <notmuch@notmuchmail.org>; Wed, 28 Apr 2010 05:40:02 -0700 (PDT)\r
+Received: from servo.finestructure.net (cpe-72-227-128-66.nyc.res.rr.com\r
+       [72.227.128.66])\r
+       (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
+       by serrano.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o3SCe1sv008773\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
+       for <notmuch@notmuchmail.org>; Wed, 28 Apr 2010 08:40:02 -0400 (EDT)\r
+Received: from jrollins by servo.finestructure.net with local (Exim 4.71)\r
+       (envelope-from <jrollins@finestructure.net>) id 1O76Yb-0000A9-7S\r
+       for notmuch@notmuchmail.org; Wed, 28 Apr 2010 08:40:01 -0400\r
+From: Jameson Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: bug report: xapian error for message id with '..'\r
+User-Agent: Notmuch/0.3-12-g78345c5 (http://notmuchmail.org) Emacs/23.1.1\r
+       (i486-pc-linux-gnu)\r
+Date: Wed, 28 Apr 2010 08:39:57 -0400\r
+Message-ID: <87y6g7zr6q.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.6\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: Wed, 28 Apr 2010 12:40:03 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+I have received a message with a somewhat strange message Id that is\r
+causing problems in notmuch:\r
+\r
+Message-Id: <4bd73e8cb3d79_1a3c..fb637ff610e@skinner.tmail>\r
+\r
+Notmuch (or actually Xapian) seems to be interpreting the '..' as a\r
+range operator, which it doesn't know how to handle:\r
+\r
+0 servo$ notmuch search id:4bd73e8cb3d79_1a3c..fb637ff610e@skinner.tmail\r
+A Xapian exception occurred performing query: Unknown range operation\r
+Query string was: id:4bd73e8cb3d79_1a3c..fb637ff610e@skinner.tmail\r
+0 servo$=20\r
+\r
+This is causing problems for this message in the emacs UI as well.\r
+\r
+Is it possible that the id string is not being properly quoted\r
+internally?\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
+iQIcBAEBCAAGBQJL2CydAAoJEO00zqvie6q8vWsP+wUES7gBZjJtGeONdRKzGGpf\r
+hvcJmhMkvnRBNfj/7IldG5GEyq9AsCs8jBor2q0MiwjwuXFO6Q6AO37C32KRlJMH\r
+mKRSFxtmdsmWeE0VCFDopcRmW3aIyqjcohl65LG/fPQSgU3MKZVY0jqEO7/iI/YC\r
+hUpDQxw7EYT2POr5BhLahumq1py9WtavB3AkhC6oLKQ/ZReinyIhRKaBgkA39xOC\r
+ChyMxMYHLN6iyBdLBBBaWvj5QXPVcxJ27gRU67wWhfQqFLlFzZLqKL8L65Z/Vp5k\r
+LcwnGfiXP3NTtFUYrDvFziuIGQZmg9bM9t57FrCbrD74iTVNWEnfG8NI/ceZF7VH\r
+htu9tfh0SVAQnR64poLKZzXyS9mw8AXI94atUY9Xdi7YLh7wI2yTzHTMD9Kyh/8G\r
+LnGUmmJhJOsKYncyf+AWJ231bZucpWoypAmjinooHJYytX8QT3Oq44jZ+nGlv8Ee\r
+wiWgPNLJI6F7F/sa9BTs4dyA36ayDPeY96b50kyDfTv1HyHm9x9Z6gV/QSaOIq7p\r
+7gL997E0feGtjf/moLWU+zYaqKfQu+aaNn+tyssfqbKjKhg2IjWu52KblPoRBGSW\r
+Sm6lKmAGXlvs1Mk8x90nhCBMvsRPYDB2KxdLM1Fqa3VUgzAUG6C7dKMhh2DAInNF\r
+vVaWrR74rNIAbJoOpnnV\r
+=HE/K\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r