Re: [exim] Get the value of an external script in a conditio…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] Get the value of an external script in a condition
On 20/02/18 13:00, Mueller via Exim-users wrote:
> So when I run Exim in verbose. It turns out the expansion is working, but
> nervertheless it points to false but it should be true?:
>
>
> 13:54:04  9383 processing "defer"
> 13:54:04  9383 expanding: run{/etc/exim/panama  $sender_address_domain
> 13:54:04  9383    result: run{/etc/exim/panama  timerunr.com
> 13:54:04  9383 expanding: NameCheap <-------------------------------------


That is "expanding" your text "NameCheap". There turns out to not
be a dollar-sign in it, so the result for that element of the
line is just "NameCheap".

> 13:54:04 9383 condition: match{run{/etc/exim/panama

$sender_address_domain}{NameCheap}

It then goes on to evaluate the "match" condition. At which point
I realise... your "run" didn't. You used a plain word "run", not
a ${run } expansion.


Also, you have an old version of exim. The current version debug
output doesn't look quite like that.
--
Jeremy