Re: Caseless searching

Top Page
Delete this message
Reply to this message
Author: John Brooks
Date:  
To: exim-users
Subject: Re: Caseless searching

Hi,

> > I've tried several versions of the the rewriting rule but none worked:
> >
> > *@*.mmu.ac.uk ${lookup${$0}dbm{/local/etc/exim/aliases}{$value}fail} Fh
> >
> > is the working (case sensitive) version,
>
> Are you sure? That bit "${$0}" looks odd; it should be "{$0}".


You are right - a typo on my part

> *@*.mmu.ac.uk ${lookup{${lc:$0}}dbm{/local/etc/exim/aliases}{$value}fail} Fh
>
> The first thing after "lookup" is the key, enclosed in braces. So in
> this case the key is "${lc:$0}" which is the lower casing operator
> applied to the string obtained by expansing $0. Does that make sense?


Yes, and it works. Many thanks

The boss was a bit dubious about using exim ("Not supported"). You can't get
much better than a answer/explanation in less than 30 minutes.

Again thanks a lot.

              Cheers, John


J.Brooks, Information Systems Unit, Manchester Metropolitan University,
Chester Street, Manchester M1 5GD, England
Tel: (+44) 161 247 6090 Fax: (+44) 161 247 6359 Mail: J.Brooks@???


--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/