Re: [exim] Wildlsearch - case-dependent?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: John Horne
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Wildlsearch - case-dependent?
On Thu, 2006-07-27 at 14:43 +0100, Philip Hazel wrote:
>
> Not a bug, but an infelicity, I grant you. In section 9.3 of the
> reference manual it says, in the paragraphs describing wildlsearch and
> nwildlsearch:
>
> Like lsearch, the testing is done case-insensitively.
>
> What this means is that the subject string is lower cased before any
> comparisons are done, and the regular expression by default has the
> case-insensitive flag set. In the case of a regex, lowercasing the
> subject isn't actually necessary -- it's done for other kinds of
> pattern.
>
> The infelicity is that specifing (?-i) to change the case sensitivity of
> the regex doesn't work, owing to the lower casing of the subject.
>
> However, the good news is that I found a very small patch that makes it
> work. The specification is now
>
> Like lsearch, the testing is done case-insensitively, but in the case
> of a regular expression, the use of (?-i) in the regex turns on case-
> sensitive matching.
>
> The patch is below. I will commit this shortly, so it will also be in
> tonight's snapshot.
>

Hello,

I have tested the patch with our configuration and it works fine :-)


Thanks,

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@???       Fax: +44 (0)1752 233839