Re: [exim] Help with using a numerical variable in a MIME AC…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: paul.mcilfatrick
Date:  
À: exim-users
Sujet: Re: [exim] Help with using a numerical variable in a MIME ACL
> Oh, just had another thought, ... I've a vague memory that
> all the numerical variables are saved and restored over an
> ${if item so that you can nest them in a reasonable way. I
> bet that's it... ah yes, here's the documentation paragraph
> that is part of the ${if description:
>
>     At the start of an if expansion the values of the numeric variable
>     substitutions $1 etc. are remembered. Obeying a match 
> condition that
>     succeeds causes them to be reset to the substrings of 
> that condition
>     and they will have these values during the expansion of 
> the success
>     string. At the end of the if expansion, the previous values are
>     restored. After testing a combination of conditions using or, the
>     subsequent values of the numeric variables are those of the
>     condition that succeeded.

>
> So I don't need to do a test after all.


But in my case there was no previous value as the ${if is not nested.

Would it be possible for Exim to be changed so that at the end of an if
expansion a numerical variable is only reset if it held a value before?



Paul McIlfatrick