Re: [exim] auto-reply with exceptions from SQL lookup

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Veres Imre
Dátum:  
Címzett: tlyons
CC: exim-users
Tárgy: Re: [exim] auto-reply with exceptions from SQL lookup
On Mon, 9 May 2011 20:02:26 +0200
Veres Imre <six@???> wrote:

Hello Todd,

> I'd like to catch those addresses after the condition, with "senders":
>
> senders = !${lookup mysql{select vn.address from users u,domains d,noautoreply vn \
>             where u.localpart = '${quote_mysql:$local_part}' \
>             and d.domain = '${quote_mysql:$domain}' \
>             and u.domain_id=d.domain_id \
>             and vn.user_id = u.user_id}{$value}}

>
> (If the user set any addresses to the noautoreply table, I don't want to deliver autoreply to these.)
> The problem must be here, during the expansion of mysql query. I'd like to create this expansion in that way the
> empty list should work as well as a populated list.


Let's simplify the problem to this: I'd like to populate an addressgroup from SQL during the transport. Is it possible?

Thank you,

Imre