[Exim] Regex matching

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Byers
Dátum:  
Címzett: exim-users
Tárgy: [Exim] Regex matching
I'm trying to write a director that will match a class list like ss01-cse-498-1@???
I've tried quite a few combinations but nothing seems to work. I thought
this might work

new_address = ${if match{$local_part}{....-.+-.+-.+}{one}{two}}@???

where one and two will actually need to be database lookups eventually.
I also need to distinguish between the above example and cse-498 and
cse-498-1 and ss01-cse-498 so I need to recognize if it starts with
exactly 4 characters or if it contains three or four parts separated
by hyphens. If anyone has any advice on how to match the new_address
line above, it would be much appreciated.

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