[exim] Wrong regular expression

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: garlic
Data:  
Para: exim-users
Temas novos: Re: [exim] Wrong regular expressione
Asunto: [exim] Wrong regular expression

Hi,

I want check $local_part with follow regular expression:

sms2email:
driver = redirect
allow_fail = true
allow_defer = true
domains = +local_domains
#Correct or not follow string?
condition = ${if match {$local_part}{^342345\d{4}$}{no}{yes}}
local_part_prefix = 342345
data = ${lookup {$local_part_prefix} lsearch*
{/etc/exim4/alias.conf} }

,but get error:

checking "condition"
LOG: MAIN PANIC
failed to expand condition "${if match
{$local_part}{^342345\d{4}$}{no}{yes}}" for sms2email router: missing }
at end of s
tring
sms2email router skipped: condition failure

I read section http://www.exim.org/exim-html-4.50/doc/html/spec.html,
but not found any error in my confing file.

---
With best regards,
Alex.


--
garlic
------------------------------------------------------------------------
garlic's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=68
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=50957