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 70F9B429E25 for ; Mon, 5 Dec 2011 04:35:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 Emva3NfPSYtw for ; Mon, 5 Dec 2011 04:35:09 -0800 (PST) Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D564B429E21 for ; Mon, 5 Dec 2011 04:35:08 -0800 (PST) Received: from pps.filterd (mail-gw3 [127.0.0.1]) by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pB5CSaYt031093; Mon, 5 Dec 2011 14:35:07 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by mail-gw3.nixu.fi with ESMTP id 114cs0mbeq-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 05 Dec 2011 14:35:04 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB5CZ3EL022715; Mon, 5 Dec 2011 14:35:03 +0200 From: Tomi Ollila To: Bart Bunting , notmuch@notmuchmail.org Subject: Re: ANNOUNCE: nottoomuch-addresses.pl In-Reply-To: References: User-Agent: Notmuch/0.10+55~gde3d46e (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2011-12-05_02:2011-12-04, 2011-12-05, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1112050068 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: Mon, 05 Dec 2011 12:35:11 -0000 On Mon, 05 Dec 2011 23:04:43 +1100, Bart Bunting wrote: > Hi Tomi, > > Another observation. Not sure if this is a bug or a design decision: > I have the address: > "Zac Hamed" > a serch like: > ./nottoomuch-addresses.pl zham > > shows it up as expected. > > However if I search on the name part like: > ./nottoomuch-addresses.pl zac > > It doesn't find the match. > > Is this expected behaviour? Yes, the search is deliberately case sensitive. Note, however, that email address part is (also deliberately) lowercased before address line is added to the list... This has suited me good so far... (maybe I need to add this to the doc)... ...(or change the behaviour it if is too confusing / more inconvenient that convenient). If you want to experiment with case insensitive search you could check the line 35: print grep { index($_, $search_str) >= 0 } ; Change this to print grep { /\Q$search_str\E/oi } ; (without \Q and \E you also get regular expression matches) > > Kind regards Thanks... actually I put the above change into use; let's see if it work better for me than the other :) > > Bart Tomi > > > > > On Mon, 05 Dec 2011 13:51:16 +0200, Tomi Ollila wrote: > > Hi > > > > Thanks to Bart's findings those things are now fixed in > > version 1.1 of nottoomuch-addresses.pl > > > > Get it: > > > > (wget) http://www.iki.fi/too/nottoomuch/nottoomuch-addresses.pl > > > > Sha1 digest is now 4ed74ef9eaabb73804e55caa2c29682e643d2b78 > > > > Installation instructions & some other info now available at: > > > > http://www.iki.fi/too/nottoomuch/nottoomuch-addresses/ > > > > > > Tomi >