Re: [Exim] failed to expand condition...

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Vadim Vygonets
日付:  
To: exim-users
題目: Re: [Exim] failed to expand condition...
Quoth Philip Hazel on Mon, Jul 03, 2000:
> On Mon, 3 Jul 2000, R.E Brouwer wrote:
>
> > Can somebody help me? The next condition fails to expand:
> >
> > suffix = -*
> > condition = ${if eq
> > ${perl{suffixcheck}{$local_part}{${substr_1:$local_part_suffix}}}{yes}
> > {yes}{no}}
> >
> > suffixcheck is a simple perl script which return "yes" or "no".
>
> A quick count of the } and { characters shows that there is a { missing.


Anyway, if the perl script returns "yes" or "no", is there any
reason to embed it inside the 'if' statement? I think it's
better to strip it like this:

condition = ${perl{suffixcheck}{$local_part}{${substr_1:$local_part_suffix}}}

Vadik.

-- 
If you think C++ is not overly complicated, just what is a protected
abstract virtual base pure virtual private destructor, and when
was the last time you needed one?
        -- Tom Cargill, C++ Journal, Fall 1990.