Re: [exim] macros in macros

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Arkadiusz Miskiewicz
CC: exim-users
Betreff: Re: [exim] macros in macros
On Wed, 24 Aug 2005, Arkadiusz Miskiewicz wrote:
>
> QUOTA_STANDARD works well but the problem is in ${extract{x}{QUOTA_STANDARD}}
> in second macro. extract yelds empty result.


Reverse the order of the macro definitions. The documentation says:

Once a macro is defined, all subsequent lines in the file (and any included
files) are scanned for the macro name; if there are several macros, the line
is scanned for each in turn, in the order in which they are defined. The
replacement text is not re-scanned for the current macro, though it is scanned
for subsequently defined macros. For this reason, a macro name may not contain
the name of a previously defined macro as a substring.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}