Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8943640D157 for ; Fri, 29 Oct 2010 16:26:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham 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 liI5-m9qAa4O; Fri, 29 Oct 2010 16:26:30 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3AE1340D152; Fri, 29 Oct 2010 16:26:30 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id C9E93254007; Fri, 29 Oct 2010 16:26:29 -0700 (PDT) From: Carl Worth To: Michal Sojka , Dmitry Monakhov , notmuch@notmuchmail.org Subject: Re: couple of naive questions about search patterns In-Reply-To: <87mxtr6atl.fsf@steelpick.2x.cz> References: <87vd8ra4jp.fsf@dmon-lap.sw.ru> <87mxtr6atl.fsf@steelpick.2x.cz> User-Agent: Notmuch/0.3.1 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Fri, 29 Oct 2010 16:26:29 -0700 Message-ID: <87y69gpom2.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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, 29 Oct 2010 23:26:40 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 16 Jul 2010 11:21:58 +0200, Michal Sojka wrot= e: > No, this is because 're:' in subject is not indexed. See > skip_re_in_subject() in index.cc. That's a correct explanation of the problem. But meanwhile, I don't have any good justification for that code. I wrote it originally because I was trying to create an indexer that would be term-for-term compatible with the indexer of sup. But since that's not a goal of notmuch, we could easily drop this code. Does anybody see a reason not to do that? > > BTW: Is it possible to specify beginning(^) or the end in subject > > search pattern? >=20 > I don't think so. We don't currently have a way to do that, but I think it could be mighty handy if we did. It's conceivable that the notmuch indexer could be augmented to store special terms for beginning-of-line and end-of-line and then we could make the query parser understand '^' and '$' as mapping to these terms. That will be easier to consider after we have a custom query parser, which is something on my TODO list. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFMy1gl6JDdNq8qSWgRAosAAJ9mtmC6VLUXVrEDMWQfShGcut6sowCfUm34 gq7iI7cc86PGyDs83vSERtw= =EKuU -----END PGP SIGNATURE----- --=-=-=--