Re: [Exim] improvments to exim

Página Inicial
Delete this message
Reply to this message
Autor: Avleen Vig
Data:  
Para: Kjetil Torgrim Homme
CC: exim-users
Assunto: Re: [Exim] improvments to exim
On Thu, Dec 18, 2003 at 08:38:03PM +0100, Kjetil Torgrim Homme wrote:
> > You know what I'd like to see on conditions? Looping.
> > condition = for i in {1 2 3 4 5} { match {$int_spam_score}{$i} {yes}{no} }
>
> ${if and {{>= {$int_spam_score}{1}} \
>           {<= {$int_spam_score}{5}}} \
>      {yes} {no}}

>
> (untested)


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

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

Would provide nice header-based filtering in the router.
Currently I have to have multiple routers to achieve the same thing.
in this example, the condition would be true if any of the loops
returned 'yes' (note the 'match any' i added in).