[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [Exim] .forward and ignore case
From:       Philip Hazel <ph10 () cus ! cam ! ac ! uk>
Date:       2000-01-28 9:59:04
[Download RAW message or body]

On Thu, 27 Jan 2000, Holger Woehle wrote:

> Hello,
> i have a little problem with the regex and .forward:
> if $h_to :contains myname then deliver myname@myhost.com
> this is case sensitive ;-(

"contains" should not be case sensitive; "CONTAINS" should be case 
sensitive. I will check this out when I get a moment.

> How can i use "matches" so that the command regonizes myname & MYNAME &
> Myname ?
> something like ~ /\b"myname"\b/i ...

If you want to use a regular expression, you can use "matches" (case 
insensitive) or "MATCHES" (case sensitive), for example:

matches \bmyname\b

If you put the regex in quotes, you will have to double up the \ 
characters.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@cus.cam.ac.uk      Cambridge, England. Phone: +44 1223 334714.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic