Re: [exim] Where event msg:fail:delivery appears?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jasen Betts
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Where event msg:fail:delivery appears?
On 2017-03-28, marcin@??? <marcin@???> wrote:
>
> As for know I'm thinking about:
>  transport_xxx:
>     event_action = ${if eq {msg:delivery}{$event_name}\
>              {${lookup pgsql{PSQL_QUERY1}}} \
>             {${if eq {msg:fail:delivery}{$event_name}} \
>                           {${lookup pgsql{PSQL_QUERY2}}\
>                              }}

>
> but it's so ugly:/
>


I haven't found a truly non-ugly way.

   warn 
   acl=event_${extract{$event_name}{\
     msg:delivery      = msg_delivery \
     msg:fail:delivery = msg_fail_delivery \
   }{$value}{accept}}


gives an option to fork to different ACL code



--
This email has not been checked by half-arsed antivirus software