Re: [Exim] Regex matching

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Tony Byers
Cc: exim-users
Asunto: Re: [Exim] Regex matching
On Fri, 16 Mar 2001, Tony Byers wrote:

> I have a special director set up with a condition to only handle mail
> with a hyphen in it. Here it is:
>
> special_director:
> condition = ${if match{$local_part}{.*-.*}{true}{false}}
> driver = forwardfile
> file = ${perl{getadds}}
> filter
>
> It doesn't match when I send something to x-y@???, but when I run
> it through exim -be, this is the result:
>
> # exim -be
> > ${if match{x-y}{.*-.*}{true}{false}}
> true
> >
>
> Any ideas?


Try exim -bt -d9 x-y@??? to check that it is getting to the correct
director.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.