Re: [exim] help with condition

Pàgina inicial
Delete this message
Reply to this message
Autor: Alexandre Busquets
Data:  
A: Alexandre Busquets, exim-users
CC: 
Assumpte: Re: [exim] help with condition
#check_overquota.pl
#1 - overquota
#0 - non overquota

checkoverquota:
driver = redirect
allow_fail
condition = ${if eq {${run{sudo -u test /home/test/check_overquota.pl
$local_part $message_size}}}{1} }
data = :fail:\n\The user $local_part@$domain is over quota, $local_part
$message_size.
local_part_suffix = -*
local_part_suffix_optional
retry_use_local_part

This condition = ${run{sudo -u test /home/test/check_overquota.pl
$local_part $message_size}}

not runs,

failed to expand condition "${run{sudo -u test /home/test/check_overquota.pl
$local_part $message_size}}" for checkoverquoata router: command timed out



2006/4/10, Wakko Warner <wakko@???>:
>
> Alexandre Busquets wrote:
> > I have this condition in a router but not runs
> >
> >
> > #check_overquota.pl
> > #1 - overquota
> > #0 - non overquota
> >
> > checkoverquota:
> >   driver = redirect
> >   allow_fail
> >   condition = condition = ${if eq {${run{sudo -u test
>               ^^^^^^^^^^^^^  typo?
> > /home/test/check_overquota.pl $local_part $message_size}}}{1} }
> >   data = :fail:\n\The user $local_part@$domain is over quota,
> $local_part
> > $message_size.
> >   local_part_suffix = -*
> >   local_part_suffix_optional
> >   retry_use_local_part

>
> Wouldn't it be easier to just do:
> condition = ${run{sudo -u test /home/test/check_overquota.pl $local_part
> $message_size}}
>
> I have forgotten the exact usage of ${run
>
> --
> Lab tests show that use of micro$oft causes cancer in lab animals
> Got Gas???
>