On Friday, November 29, 2002, at 01:23 AM, Nico Erfurth wrote:
> On Fri, 29 Nov 2002, Will Prater - quattro wrote:
>> condition = ${if and { lookup mysql{MYSQL_VAC_ON}{$value}fail} }{ if
>> or
>> {{!match {$h_precedence:} {(?i)junk|bulk|list}} {!eq {$sender_address}
>> {}}} {yes}{no} } {yes}{no}}
>
> condition = ${if and
> {
> {or
> {
> {eq {$sender_address} {}}
> {match {$h_precedence:} {(?i)junk|bulk|list}}
> } {no} {yes}
> }
> {eq {1} {$lookup mysql {MYSQL_VAC_ON}{$value}}}
> } {yes}{no}
> }
>
> This is untested, it misses the \ at the linebreaks and most probably
> does
> not the things you wanted it to do, but it should show you how these
> constructions works.
I have tried the above, and checked it over. I am getting an error. I
dont see where there could possibly be a missing "}" does someone else
see the light?
----
failed to expand condition "${if and{{or{{eq {$sender_address}
{}}{match {$h_precedence:} {(?i)junk|bulk|list}}} {no}{yes}}{eq {1}
{$lookup mysql {SELECT vacation FROM passwd WHERE
id='${local_part}@${domain}'}{$value}}}} {yes}{no}}" for
mysql_autoresponder router: missing } at end of condition inside "and"
group
----
TIA
--will