Re: [Exim] improvments to exim

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Andrew - Supernews
Datum:  
To: exim-users
Neue Treads: [Exim] Exim Syntax Language
Betreff: 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