Re: [Exim] improvments to exim

Pàgina inicial
Delete this message
Reply to this message
Autor: Andrew - Supernews
Data:  
A: exim-users
Assumptes nous: [Exim] Exim Syntax Language
Assumpte: 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