unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Bart Bunting <bart@ursys.com.au>, notmuch@notmuchmail.org
Subject: Re: ANNOUNCE: nottoomuch-addresses.pl
Date: Mon, 05 Dec 2011 14:35:03 +0200	[thread overview]
Message-ID: <yf662hv5h8o.fsf@taco2.nixu.fi> (raw)
In-Reply-To: <m2pqg32pic.fsf@ursys.com.au>

On Mon, 05 Dec 2011 23:04:43 +1100, Bart Bunting <bart@ursys.com.au> wrote:
> Hi Tomi,
> 
> Another observation.  Not sure if this is a bug or a design decision:
> I have the address:
> "Zac Hamed" <zhamed@xxxxxxxxxx.xxx.au>
> 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 } <I>;

Change this to

	print grep { /\Q$search_str\E/oi } <I>;

(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 <tomi.ollila@nixu.com> 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
> 

  reply	other threads:[~2011-12-05 12:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 15:36 ANNOUNCE: nottoomuch-addresses.pl Tomi Ollila
2011-12-01 18:38 ` Bart Bunting
2011-12-02  7:37   ` Tomi Ollila
2011-12-05 11:51     ` Tomi Ollila
2011-12-05 12:04       ` Bart Bunting
2011-12-05 12:35         ` Tomi Ollila [this message]
2011-12-05 12:55           ` Jameson Graef Rollins
2011-12-05 21:45             ` Bart Bunting
2011-12-06  4:43               ` Bart Bunting
2011-12-06 22:03               ` Tomi Ollila
2011-12-12 16:05                 ` ANNOUNCE: nottoomuch-addresses.pl version 1.3 Tomi Ollila
2011-12-14 20:10                   ` ANNOUNCE: nottoomuch-addresses.pl version 1.4 Tomi Ollila
     [not found]                     ` <20111216130128.E918211BC52@karen.lavabit.com>
2011-12-16 14:18                       ` Tomi Ollila
2011-12-23  9:37                     ` ANNOUNCE: nottoomuch-addresses.sh version 1.5 Tomi Ollila
2011-12-30 16:42                       ` ANNOUNCE: nottoomuch-addresses.sh version 1.6 Tomi Ollila
2012-01-18  7:14 ` ANNOUNCE: nottoomuch-addresses.sh 2.0 Tomi Ollila
2012-02-22 19:53 ` ANNOUNCE: nottoomuch-addresses.sh 2.1 Tomi Ollila
2014-03-29 16:07 ` ANNOUNCE: nottoomuch-addresses.sh 2.2 Tomi Ollila
2014-09-17 19:02 ` ANNOUNCE: nottoomuch-addresses.sh 2.3 Tomi Ollila
2014-09-17 19:14   ` ANNOUNCE: notmuch-abook v1.6 [Was: Re: ANNOUNCE: nottoomuch-addresses.sh 2.3] guyzmo
2014-09-18  6:54     ` Rainer M Krug
     [not found]       ` <20140918085411.GD1079@vilya.online.net>
2014-09-18 10:26         ` Rainer M Krug
2020-10-03 12:07 ` ANNOUNCE: nottoomuch-addresses.sh 2.5 Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yf662hv5h8o.fsf@taco2.nixu.fi \
    --to=tomi.ollila@iki.fi \
    --cc=bart@ursys.com.au \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).