Re: [exim] Wildlsearch - case-dependent?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: John Horne
CC: exim-users
Subject: Re: [exim] Wildlsearch - case-dependent?
On Wed, 26 Jul 2006, John Horne wrote:

> In this instance I am searching on subject lines (yup, we're doing some
> weird things down here! :-)) :
>
>      condition = ${lookup {$h_Subject:} nwildlsearch \
>                        {/etc/exim/tables/subj-blacklist} {1} {0} }

>
> The key being looked up ($h_Subject:) seems lowercased before the file
> is searched.


A *brief* look at the code suggests not, but I haven't spent time on it.
I could well be wrong - there's a lot of code. I don't have time just
now to actually run a test.

Ordinary lsearch matching does a caseless comparison of keys; it doesn't
force the case. This suggests it isn't expecting its keys to be
case-forced.

Certainly nwildlsearch has a default of caselessness for regex
comparison, but (?-i) should suppress that.

I will do a test when I get a moment.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book