Re: [exim] How can i expand a mysql query ?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jakob Hirsch
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] How can i expand a mysql query ?
Quoting Stanislaw Halik:

>> expand> ${eval: 1 + 2}/.spambox
> Unfortunately, this will expand to `/.spambox' instead of an empty
> string if the ${lookup returns an empty string.


${lookup mysql {...} {${value}/.spambox}}

But where should it be delivered, when the lookup fails? When the
transport's directory option expands to an emptry string, the delivery
will fail temporarily (I think), and the message ends up in your queue.