Re: [PATCH 0/2] cli: notmuch dump abstractions
[notmuch-archives.git] / 45 / 9fc25d7b1843da2bc6b7bae5d455c6d67fd715
1 Return-Path: <tomi.ollila@nixu.com>\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 70F9B429E25\r
6         for <notmuch@notmuchmail.org>; Mon,  5 Dec 2011 04:35:11 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id Emva3NfPSYtw for <notmuch@notmuchmail.org>;\r
16         Mon,  5 Dec 2011 04:35:09 -0800 (PST)\r
17 Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id D564B429E21\r
21         for <notmuch@notmuchmail.org>; Mon,  5 Dec 2011 04:35:08 -0800 (PST)\r
22 Received: from pps.filterd (mail-gw3 [127.0.0.1])\r
23         by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pB5CSaYt031093;\r
24         Mon, 5 Dec 2011 14:35:07 +0200\r
25 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
26         by mail-gw3.nixu.fi with ESMTP id 114cs0mbeq-1\r
27         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
28         Mon, 05 Dec 2011 14:35:04 +0200\r
29 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
30         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
31         pB5CZ3EL022715; Mon, 5 Dec 2011 14:35:03 +0200\r
32 From: Tomi Ollila <tomi.ollila@iki.fi>\r
33 To: Bart Bunting <bart@ursys.com.au>, notmuch@notmuchmail.org\r
34 Subject: Re: ANNOUNCE: nottoomuch-addresses.pl\r
35 In-Reply-To: <m2pqg32pic.fsf@ursys.com.au>\r
36 References: <m2d3c8e22v.fsf@guru.guru-group.fi> <m2vcq0qgs6.fsf@ursys.com.au>\r
37         <yf6wraf5sq2.fsf@taco2.nixu.fi> <yf68vmr5j9n.fsf@taco2.nixu.fi>\r
38         <m2pqg32pic.fsf@ursys.com.au>\r
39 User-Agent: Notmuch/0.10+55~gde3d46e (http://notmuchmail.org) Emacs/23.3.1\r
40         (i686-pc-linux-gnu)\r
41 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
42         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
43         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
44 Date: Mon, 05 Dec 2011 14:35:03 +0200\r
45 Message-ID: <yf662hv5h8o.fsf@taco2.nixu.fi>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=us-ascii\r
48 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,\r
49  1.0.211,       0.0.0000        definitions=2011-12-05_02:2011-12-04, 2011-12-05,\r
50         1970-01-01 signatures=0\r
51 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0\r
52         ipscore=0 suspectscore=0\r
53         phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0\r
54         reason=mlx\r
55         scancount=1 engine=6.0.2-1012030000 definitions=main-1112050068\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Mon, 05 Dec 2011 12:35:11 -0000\r
69 \r
70 On Mon, 05 Dec 2011 23:04:43 +1100, Bart Bunting <bart@ursys.com.au> wrote:\r
71 > Hi Tomi,\r
72\r
73 > Another observation.  Not sure if this is a bug or a design decision:\r
74 > I have the address:\r
75 > "Zac Hamed" <zhamed@xxxxxxxxxx.xxx.au>\r
76 > a serch like:\r
77 > ./nottoomuch-addresses.pl  zham\r
78\r
79 > shows it up as expected.\r
80\r
81 > However if I search on the name part like:\r
82 > ./nottoomuch-addresses.pl  zac\r
83\r
84 > It doesn't find the match.\r
85\r
86 > Is this expected behaviour?\r
87 \r
88 Yes, the search is deliberately case sensitive. Note, however, that\r
89 email address part is (also deliberately) lowercased before address line\r
90 is added to the list... \r
91 \r
92 This has suited me good so far... (maybe I need to add this to the doc)...\r
93 \r
94 ...(or change the behaviour it if is too confusing / more inconvenient\r
95 that convenient).\r
96 \r
97 If you want to experiment with case insensitive search you could check the\r
98 line 35:\r
99 \r
100         print grep { index($_, $search_str) >= 0 } <I>;\r
101 \r
102 Change this to\r
103 \r
104         print grep { /\Q$search_str\E/oi } <I>;\r
105 \r
106 (without \Q and \E you also get regular expression matches)\r
107 \r
108\r
109 > Kind regards\r
110 \r
111 Thanks... actually I put the above change into use; let's see if it\r
112 work better for me than the other :)\r
113 \r
114\r
115 > Bart\r
116 \r
117 Tomi\r
118 \r
119 \r
120\r
121\r
122\r
123\r
124 >  On Mon, 05 Dec 2011 13:51:16 +0200, Tomi Ollila <tomi.ollila@nixu.com> wrote:\r
125 > > Hi\r
126 > > \r
127 > > Thanks to Bart's findings those things are now fixed in\r
128 > > version 1.1 of nottoomuch-addresses.pl \r
129 > > \r
130 > > Get it:\r
131 > > \r
132 > > (wget) http://www.iki.fi/too/nottoomuch/nottoomuch-addresses.pl \r
133 > > \r
134 > > Sha1 digest is now 4ed74ef9eaabb73804e55caa2c29682e643d2b78\r
135 > > \r
136 > > Installation instructions & some other info now available at:\r
137 > > \r
138 > > http://www.iki.fi/too/nottoomuch/nottoomuch-addresses/\r
139 > > \r
140 > > \r
141 > > Tomi\r
142\r