[PATCH 2/9] lib: private string map (associative array) API
[notmuch-archives.git] / b1 / 0cb5bcb54666684fc836bd4d76a7173a0bcce3
1 Return-Path: <cworth@cworth.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 8943640D157\r
6         for <notmuch@notmuchmail.org>; Fri, 29 Oct 2010 16:26:40 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.89\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
12         tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
13         autolearn=ham\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id liI5-m9qAa4O; Fri, 29 Oct 2010 16:26:30 -0700 (PDT)\r
17 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
18         by olra.theworths.org (Postfix) with ESMTP id 3AE1340D152;\r
19         Fri, 29 Oct 2010 16:26:30 -0700 (PDT)\r
20 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
21         id C9E93254007; Fri, 29 Oct 2010 16:26:29 -0700 (PDT)\r
22 From: Carl Worth <cworth@cworth.org>\r
23 To: Michal Sojka <sojkam1@fel.cvut.cz>,\r
24  Dmitry Monakhov <dmonakhov@openvz.org>,        notmuch@notmuchmail.org\r
25 Subject: Re: couple of naive questions about search patterns\r
26 In-Reply-To: <87mxtr6atl.fsf@steelpick.2x.cz>\r
27 References: <87vd8ra4jp.fsf@dmon-lap.sw.ru> <87mxtr6atl.fsf@steelpick.2x.cz>\r
28 User-Agent: Notmuch/0.3.1 (http://notmuchmail.org) Emacs/23.2.1\r
29         (i486-pc-linux-gnu)\r
30 Date: Fri, 29 Oct 2010 16:26:29 -0700\r
31 Message-ID: <87y69gpom2.fsf@yoom.home.cworth.org>\r
32 MIME-Version: 1.0\r
33 Content-Type: multipart/signed; boundary="=-=-=";\r
34         micalg=pgp-sha1; protocol="application/pgp-signature"\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Fri, 29 Oct 2010 23:26:40 -0000\r
48 \r
49 --=-=-=\r
50 Content-Transfer-Encoding: quoted-printable\r
51 \r
52 On Fri, 16 Jul 2010 11:21:58 +0200, Michal Sojka <sojkam1@fel.cvut.cz> wrot=\r
53 e:\r
54 > No, this is because 're:' in subject is not indexed. See\r
55 > skip_re_in_subject() in index.cc.\r
56 \r
57 That's a correct explanation of the problem. But meanwhile, I don't have\r
58 any good justification for that code.\r
59 \r
60 I wrote it originally because I was trying to create an indexer that\r
61 would be term-for-term compatible with the indexer of sup. But since\r
62 that's not a goal of notmuch, we could easily drop this code.\r
63 \r
64 Does anybody see a reason not to do that?\r
65 \r
66 > > BTW: Is it possible to specify beginning(^) or the end in subject\r
67 > > search pattern?\r
68 >=20\r
69 > I don't think so.\r
70 \r
71 We don't currently have a way to do that, but I think it could be mighty\r
72 handy if we did. It's conceivable that the notmuch indexer could be\r
73 augmented to store special terms for beginning-of-line and end-of-line\r
74 and then we could make the query parser understand '^' and '$' as\r
75 mapping to these terms.\r
76 \r
77 That will be easier to consider after we have a custom query parser,\r
78 which is something on my TODO list.\r
79 \r
80 =2DCarl\r
81 \r
82 =2D-=20\r
83 carl.d.worth@intel.com\r
84 \r
85 --=-=-=\r
86 Content-Type: application/pgp-signature\r
87 \r
88 -----BEGIN PGP SIGNATURE-----\r
89 Version: GnuPG v1.4.10 (GNU/Linux)\r
90 \r
91 iD8DBQFMy1gl6JDdNq8qSWgRAosAAJ9mtmC6VLUXVrEDMWQfShGcut6sowCfUm34\r
92 gq7iI7cc86PGyDs83vSERtw=\r
93 =EKuU\r
94 -----END PGP SIGNATURE-----\r
95 --=-=-=--\r