Re: [Exim] improvments to exim

Top Page
Delete this message
Reply to this message
Author: Andrew - Supernews
Date:  
To: exim-users
New-Topics: [Exim] Exim Syntax Language
Subject: Re: [Exim] improvments to exim
>>>>> "Avleen" == Avleen Vig <lists-exim@???> writes:

Avleen> Actually my example was bad. Here's a better one:

Avleen> for i in (h_x-mailer h_from h_to h_subject) match any {
Avleen> {$i:}{${lookup mysql{select $i from table...}}} {yes}{no}
Avleen> }
Avleen> data = :blackhole:

it's not pretty, but you can do something like:

${if !eq{{}\
         {${sg{x-mailer:from:to:subject:}{\N([^:]+:)\N}\
             {\N${lookup mysql{select ... '${quote_mysql:${expand:\$h_$1}}' ...}\
                         {yes}{}}\N}}}}\
     {yes}{no}}


--
Andrew, Supernews
http://www.supernews.com