Re: [Exim] Regex matching

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Tony Byers
CC: exim-users
Betreff: 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.