Re: [Exim] .forward and ignore case

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Holger Woehle
CC: exim-users
Assumpte: Re: [Exim] .forward and ignore case
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@???
> 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@???      Cambridge, England. Phone: +44 1223 334714.