[Exim] Regex matching

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Byers
Datum:  
To: exim-users
Betreff: [Exim] Regex matching
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?

Thanks

Tony Byers


___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com