Re: [exim] how to make use of custom variables in a router

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] how to make use of custom variables in a router
On 02/06/2020 19:39, Jürgen Edner via Exim-users wrote:
>   public_folder_maildir:
>     driver      = accept
>     set = r_dir = ${extract{folder}{${lookup{$local_part} \
>                     lsearch{/etc/pubfolders}}}{$value}}
>     debug_print = r_dir=$r_dir
>     condition   = ${if exists{/home/imappublic/.$r_dir/cur}}
>     local_parts = ${extract{folder}{${lookup{$local_part} \
>                     lsearch{/etc/pubfolders}}}{$value}}
>     transport   = public_folder_maildir_delivery


Ah... "condition" is a pre-condition for the router, and
evaluated before the router is run. "set" is an option
for the router and evaluated as the router runs.

So you can't use the result of the "set" in a condition
on the same router, sorry.
--
Cheers,
Jeremy