Re: [Exim] Condition statement for autoreply

Etusivu
Poista viesti
Vastaa
Lähettäjä: Darren Casey
Päiväys:  
Vastaanottaja: Exim List
Aihe: Re: [Exim] Condition statement for autoreply
> catchall_autoreply:
> driver = accept
> condition = ${if and {\
> {eq {${lookup mysql {MYSQL_AUTOREPLY_EMAIL}{$value}}}{false} }\
> {eq {${lookup mysql {MYSQL_CATCHALL_AUTOREPLY_EMAIL}{$value}}}{true} }\
> }\
> {true}{false}}
> transport = catchall_auto_message
> unseen


I figured it out thanks
condition = ${if and {\
{eq {${lookup mysql {MYSQL_AUTOREPLY_EMAIL}{true}{false}}}{false} }\
{eq {${lookup mysql
{MYSQL_CATCHALL_AUTOREPLY_EMAIL}{true}{false}}}{true} }\
}\
{true}{false}}