--- /dev/null
+Return-Path: <david@tethera.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 arlo.cworth.org (Postfix) with ESMTP id 9BCF36DE13EA\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Apr 2015 16:48:21 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.347\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.347 tagged_above=-999 required=5 tests=[AWL=0.347]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id PrefpE2MZOx7 for <notmuch@notmuchmail.org>;\r
+ Mon, 20 Apr 2015 16:48:19 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 173B66DE1003\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Apr 2015 16:48:19 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <david@tethera.net>)\r
+ id 1YkLPU-0008TM-NW; Mon, 20 Apr 2015 23:47:28 +0000\r
+Received: (nullmailer pid 30923 invoked by uid 1000); Mon, 20 Apr 2015\r
+ 23:47:11 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: matt@bubblegen.co.uk, notmuch@notmuchmail.org\r
+Subject: Re: quirks with subject searching\r
+In-Reply-To: <10f88378b37e653bba961be66183d2d5.squirrel@webmail.plus.net>\r
+References: <10f88378b37e653bba961be66183d2d5.squirrel@webmail.plus.net>\r
+User-Agent: Notmuch/0.19+96~g703c8f9 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Tue, 21 Apr 2015 08:47:11 +0900\r
+Message-ID: <87383ufjls.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Mon, 20 Apr 2015 23:48:21 -0000\r
+\r
+Matthew Lear <matt@bubblegen.co.uk> writes:\r
+>\r
+> item: foo\r
+> an item: foo\r
+> an item: XYfoo1234\r
+> an item: XYfoo bar\r
+>\r
+> ... only the first two are found.\r
+>\r
+> Also:\r
+> * notmuch searching for subject:"item: f" gives zero results.\r
+\r
+notmuch (and xapian) are based on searching for words, not\r
+substrings. It only finds subwords through a process of stemming [1]. \r
+\r
+>\r
+> * notmuch searching for subject:"(*foo*)" results in the first two threads\r
+> being found and also a thread with the word footprint in the middle of the\r
+> subject being found (subject is "memory footprint without feature").\r
+\r
+wildcards [2] are supported only at the end of words, so I suppose the first\r
+* is just ignored.\r
+\r
+>\r
+> Why doesn't notmuch search subject:foo find all four threads, and why\r
+> doesn't notmuch search subject:"item: f" find anything at all?\r
+\r
+Hopefully the above clears it up. This topic comes up fairly often; I'm\r
+not sure if there is something we could add to the (already rather\r
+long) notmuch-search-terms manpage that would help.\r
+\r
+\r
+[1] "Stemming" in notmuch-search-terms (7)\r
+[2] "Wildcards" in notmuch-search-terms (7)\r