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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jasen Betts
Date:  
À: exim-users
Sujet: 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