Re: [Exim] improvments to exim

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Andrew - Supernews
日付:  
To: exim-users
新しいトピック: [Exim] Exim Syntax Language
題目: 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